mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-19 09:37:43 +02:00
fix(theme-common): ThemedComponent should display something when JS is disabled (#9243)
This commit is contained in:
parent
67c40069d1
commit
ca352686dc
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue