Skip to content

Commit

Permalink
color-mode mixin fix for keyboard toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Mar 30, 2021
1 parent 7021d7d commit cdf24bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/support/mixins/color-modes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit cdf24bb

Please sign in to comment.