Skip to content

Commit f146720

Browse files
authored
Revert "Revert "Add ::selection to root color vars" (#2468)"
This reverts commit c6d5d1d.
1 parent a65f103 commit f146720

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/support/mixins/color-modes.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@mixin color-mode-theme($theme-name, $include-root: false) {
22
@if $include-root {
33
:root,
4+
::selection,
45
[data-color-mode="light"][data-light-theme="#{$theme-name}"],
56
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"] {
67
@content;
@@ -32,6 +33,7 @@
3233
@mixin color-mode($mode) {
3334
@if $mode == light {
3435
:root,
36+
::selection,
3537
[data-color-mode="light"][data-light-theme*="#{$mode}"],
3638
[data-color-mode="dark"][data-dark-theme*="#{$mode}"] {
3739
@content;

0 commit comments

Comments
 (0)