fix(theme-common): ThemedComponent should display something when JS is disabled (#9243)

This commit is contained in:
Sébastien Lorber 2023-08-18 17:11:52 +02:00 committed by GitHub
parent 67c40069d1
commit ca352686dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}