Fix theme settings on design page (#12154)

This commit is contained in:
Joakim Sørensen 2022-03-30 11:21:00 +02:00 committed by GitHub
parent ac670614b4
commit 7ca28469b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,13 +53,19 @@ class DemoBlackWhiteRow extends LitElement {
firstUpdated(changedProps) {
super.firstUpdated(changedProps);
applyThemesOnElement(this.shadowRoot!.querySelector(".dark"), {
applyThemesOnElement(
this.shadowRoot!.querySelector(".dark"),
{
default_theme: "default",
default_dark_theme: "default",
themes: {},
darkMode: true,
theme: "default",
});
},
undefined,
undefined,
true
);
}
handleSubmit(ev) {