mirror of
https://github.com/home-assistant/frontend.git
synced 2025-10-21 17:49:39 +00:00
Add compatibility for Lit 2.0 (#8878)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import "@material/mwc-formfield";
|
||||
import type { Formfield } from "@material/mwc-formfield";
|
||||
import { style } from "@material/mwc-formfield/mwc-formfield-css";
|
||||
import { css, CSSResult, customElement } from "lit-element";
|
||||
import { css, CSSResultGroup, customElement } from "lit-element";
|
||||
import { Constructor } from "../types";
|
||||
|
||||
const MwcFormfield = customElements.get(
|
||||
@@ -10,7 +10,7 @@ const MwcFormfield = customElements.get(
|
||||
|
||||
@customElement("ha-formfield")
|
||||
export class HaFormfield extends MwcFormfield {
|
||||
protected static get styles(): CSSResult[] {
|
||||
protected static get styles(): CSSResultGroup {
|
||||
return [
|
||||
style,
|
||||
css`
|
||||
|
Reference in New Issue
Block a user