Skip to content

Commit

Permalink
Add color-scheme to light root selector
Browse files Browse the repository at this point in the history
Fixup for twbs#37734

If `[data-bs-theme="light"]` is nested within `[data-bs-theme="dark"]`,
`color-scheme` should be reset to `light`.
  • Loading branch information
xi committed Feb 17, 2025
1 parent 669079d commit 7cd2f48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
[data-bs-theme="light"] {
// Note: Custom variable values only support SassScript inside `#{}`.

color-scheme: light;

// Colors
//
// Generate palettes for full colors, grays, and theme colors.
Expand Down

0 comments on commit 7cd2f48

Please sign in to comment.