Commit 3702caa
authored
fix(styling): use correct inverse text color tokens (#3125)
### 🎯 Goal
Fix broken text colors on inverse-themed surfaces (notifications,
gallery overlays, inverse badges). These components rendered with nearly
invisible text because they referenced undefined CSS variables.
### 🛠 Implementation details
The Figma-generated theme tokens renamed `--text-inverse` →
`--text-on-inverse` and `--badge-text-inverse` →
`--badge-text-on-inverse`, but three SCSS files still referenced the old
names. Since the old variables are undefined in the compiled CSS, the
`color` property fell back to the inherited value (`--text-primary`),
producing dark-on-dark (light mode) or light-on-light (dark mode) text.
**Files changed:**
- **`Notification.scss`** — notification toast text + commented-out
severity variants
- **`ModalGallery.scss`** — load-failed indicator color + "+N more"
overlay text
- **`Badge.scss`** — inverse badge variant text color
The correctly named tokens (`--text-on-inverse`,
`--badge-text-on-inverse`) are already defined in both `light.scss`
(#ffffff) and `dark.scss` (#000000).
### 🎨 UI Changes
Notification toasts, gallery overlays with "+N more" count, image
load-failed indicators, and inverse badges now have legible text on
their inverse backgrounds in both light and dark mode.1 parent f131a6a commit 3702caa
3 files changed
Lines changed: 8 additions & 8 deletions
File tree
- src/components
- Attachment/styling
- Badge/styling
- Notifications/styling
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments