Files
frontend/src/components/ha-fab.ts
2021-05-18 07:37:53 -07:00

17 lines
401 B
TypeScript

import { Fab } from "@material/mwc-fab";
import { customElement } from "lit/decorators";
@customElement("ha-fab")
export class HaFab extends Fab {
protected firstUpdated(changedProperties) {
super.firstUpdated(changedProperties);
this.style.setProperty("--mdc-theme-secondary", "var(--primary-color)");
}
}
declare global {
interface HTMLElementTagNameMap {
"ha-fab": HaFab;
}
}