Commit bac557f
fix(lynx-css): refresh text color on theme change
Lynx does not re-resolve inline-style var() when the theme changes
(only rule-based var() is tracked for style invalidation), so <text>
color set via an inline var() stays stale after a theme switch. Add a
global `text { background-color: var(--seed-color-bg-transparent) }`
rule whose rule-based var() recalculation forces an element re-paint
that also refreshes the inline color. bg-transparent has alpha 0 in
both themes, so there is no visual side effect.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 4e2ee69 commit bac557f
6 files changed
Lines changed: 26 additions & 2 deletions
File tree
- .changeset
- packages
- lynx-css
- lynx-qvism-preset/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
4 | 15 | | |
5 | 16 | | |
6 | 17 | | |
| |||
0 commit comments