1
1
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:
Jon Rohan 2021-03-30 12:58:49 -07:00
parent 7021d7db3f
commit cdf24bbc58
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB

View File

@ -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;
}
}