mirror of
https://github.com/primer/css.git
synced 2024-12-22 21:51:39 +03:00
Revert "Revert "Add ::selection
to root color vars" (#2468)"
This reverts commit c6d5d1dfd3
.
This commit is contained in:
parent
a65f103b17
commit
f146720eec
@ -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;
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user