Skip to content

Commit

Permalink
Revert "Revert "Add ::selection to root color vars" (#2468)"
Browse files Browse the repository at this point in the history
This reverts commit c6d5d1d.
  • Loading branch information
langermank authored Jun 22, 2023
1 parent a65f103 commit f146720
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/support/mixins/color-modes.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@mixin color-mode-theme($theme-name, $include-root: false) {
@if $include-root {
:root,
::selection,
[data-color-mode="light"][data-light-theme="#{$theme-name}"],
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"] {
@content;
Expand Down Expand Up @@ -32,6 +33,7 @@
@mixin color-mode($mode) {
@if $mode == light {
:root,
::selection,
[data-color-mode="light"][data-light-theme*="#{$mode}"],
[data-color-mode="dark"][data-dark-theme*="#{$mode}"] {
@content;
Expand Down

0 comments on commit f146720

Please sign in to comment.