Skip to content

Commit f114ce6

Browse files
authored
Change color-scheme selector to :root
1 parent 792dad7 commit f114ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/foundations/scss/defaults/default-required.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}
3434

3535
// We'll set the color scheme (https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme) to light and dark if it's not already set as a meta tag in the head, which would be the recommended way.
36-
html:not(:has([name="color-scheme"])) {
36+
:root:not(:has([name="color-scheme"])) {
3737
color-scheme: light dark;
3838
}
3939

0 commit comments

Comments
 (0)