mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-21 02:27:49 +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 {
|
[data-theme='dark'] .themedComponent--dark {
|
||||||
display: initial;
|
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