mirror of
https://github.com/primer/css.git
synced 2024-12-27 16:11:46 +03:00
color-mode mixin fix for keyboard toggle
This commit is contained in:
parent
7021d7db3f
commit
cdf24bbc58
@ -29,12 +29,14 @@
|
||||
@mixin color-mode($mode) {
|
||||
@if $mode == light {
|
||||
:root,
|
||||
[data-color-mode="#{$mode}"][data-#{$mode}-theme*="#{$mode}"] {
|
||||
[data-color-mode="dark"][data-dark-theme*="#{$mode}"],
|
||||
[data-color-mode="light"][data-light-theme*="#{$mode}"] {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@else {
|
||||
[data-color-mode="#{$mode}"][data-#{$mode}-theme*="#{$mode}"] {
|
||||
[data-color-mode="dark"][data-dark-theme*="#{$mode}"],
|
||||
[data-color-mode="light"][data-light-theme*="#{$mode}"] {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user