Fix: toggle light / dark makes background white (#4553)

pull/4571/head
shamoon 3 weeks ago committed by GitHub
parent 6f429a6a4b
commit 1a85175b15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -459,7 +459,7 @@ function Home({ initialSettings }) {
} }
export default function Wrapper({ initialSettings, fallback }) { export default function Wrapper({ initialSettings, fallback }) {
const { theme } = useContext(ThemeContext); const { themeContext } = useContext(ThemeContext);
const wrappedStyle = {}; const wrappedStyle = {};
let backgroundBlur = false; let backgroundBlur = false;
let backgroundSaturate = false; let backgroundSaturate = false;
@ -490,9 +490,9 @@ export default function Wrapper({ initialSettings, fallback }) {
id="page_wrapper" id="page_wrapper"
className={classNames( className={classNames(
"relative", "relative",
theme && theme, initialSettings.theme && initialSettings.theme,
initialSettings.color && `theme-${initialSettings.color}`, initialSettings.color && `theme-${initialSettings.color}`,
theme === "dark" ? "scheme-dark" : "scheme-light", themeContext === "dark" ? "scheme-dark" : "scheme-light",
)} )}
> >
<div <div

Loading…
Cancel
Save