Skip to content

Commit

Permalink
fix(theme-common): ThemedComponent should display something when JS i…
Browse files Browse the repository at this point in the history
…s disabled (#9243)
  • Loading branch information
slorber authored Aug 18, 2023
1 parent 67c4006 commit ca35268
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@
[data-theme='dark'] .themedComponent--dark {
display: initial;
}

/*
JS disabled??? Show light version by default => better than showing nothing
TODO bad, but we currently always show light mode when there's no data-theme
*/
html:not([data-theme]) .themedComponent--light {
display: initial;
}

0 comments on commit ca35268

Please sign in to comment.