Upgrade to Lit 2 (#9199)

This commit is contained in:
Bram Kragten
2021-05-18 16:37:53 +02:00
committed by GitHub
parent 245bb639f2
commit bc92c0b052
691 changed files with 2328 additions and 5179 deletions

View File

@@ -1,12 +1,8 @@
import "@material/mwc-checkbox";
import type { Checkbox } from "@material/mwc-checkbox";
import { customElement } from "lit-element";
import type { Constructor } from "../types";
const MwcCheckbox = customElements.get("mwc-checkbox") as Constructor<Checkbox>;
import { Checkbox } from "@material/mwc-checkbox";
import { customElement } from "lit/decorators";
@customElement("ha-checkbox")
export class HaCheckbox extends MwcCheckbox {
export class HaCheckbox extends Checkbox {
public firstUpdated() {
super.firstUpdated();
this.style.setProperty("--mdc-theme-secondary", "var(--primary-color)");