Commit fb1815a
committed
Apply color-scheme-light class to html element for proper CSS variable inheritance
The previous fix applied the color-scheme-light class only to the body element,
but CSS variables were defined on :root (the html element). This caused
specificity issues where the variables wouldn't properly override.
Now applying the class to both document.documentElement (html) and document.body
to ensure CSS variables are properly inherited throughout the iframe.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent eb8e467 commit fb1815a
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
| 153 | + | |
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
| |||
0 commit comments