1
1
mirror of https://github.com/primer/css.git synced 2024-12-23 06:01:54 +03:00

Revert "Revert "Add ::selection to root color vars" (#2468)"

This reverts commit c6d5d1dfd3.
This commit is contained in:
Katie Langerman 2023-06-22 14:09:55 -07:00 committed by GitHub
parent a65f103b17
commit f146720eec

View File

@ -1,6 +1,7 @@
@mixin color-mode-theme($theme-name, $include-root: false) { @mixin color-mode-theme($theme-name, $include-root: false) {
@if $include-root { @if $include-root {
:root, :root,
::selection,
[data-color-mode="light"][data-light-theme="#{$theme-name}"], [data-color-mode="light"][data-light-theme="#{$theme-name}"],
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"] { [data-color-mode="dark"][data-dark-theme="#{$theme-name}"] {
@content; @content;
@ -32,6 +33,7 @@
@mixin color-mode($mode) { @mixin color-mode($mode) {
@if $mode == light { @if $mode == light {
:root, :root,
::selection,
[data-color-mode="light"][data-light-theme*="#{$mode}"], [data-color-mode="light"][data-light-theme*="#{$mode}"],
[data-color-mode="dark"][data-dark-theme*="#{$mode}"] { [data-color-mode="dark"][data-dark-theme*="#{$mode}"] {
@content; @content;