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 committed Sep 20, 2023
1 parent a6f059f commit d1d9c00
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@
display: flex;
flex: 1 0 auto;
}

/*
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 d1d9c00

Please sign in to comment.