Skip to content

Commit

Permalink
Fix missing styles in Safari 11
Browse files Browse the repository at this point in the history
  • Loading branch information
tnajdek committed Sep 3, 2024
1 parent d2a121e commit df7086a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/stylesheets/themes/_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ $-colors: (
}

@if $platform == 'web' {
:root {
// fallback for browsers that do not support color-schemes (e.g., Safari 11)
@include -light-rules();
}

:root[data-color-scheme=light] {
@include -light-rules();
}
Expand Down

0 comments on commit df7086a

Please sign in to comment.