We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ffbbc3 commit 6c17b7cCopy full SHA for 6c17b7c
packages/@react-spectrum/s2/src/page.macro.ts
@@ -25,7 +25,7 @@ export function generatePageStyles(this: MacroContext | void): void {
25
if (this && typeof this.addAsset === 'function') {
26
this.addAsset({
27
type: 'css',
28
- content: `html {
+ content: `:where(:root, :host) {
29
color-scheme: light dark;
30
--s2-container-bg: ${colorToken(tokens['background-base-color'])};
31
background: var(--s2-container-bg);
@@ -68,7 +68,7 @@ export function generateDefaultColorSchemeStyles(this: MacroContext | void): voi
68
69
70
content: `@layer _.a {
71
- :where(html) {
+ :where(:root, :host) {
72
--lightningcss-light: initial;
73
--lightningcss-dark: ;
74
--s2-scale: 1;
0 commit comments