mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-14 21:40:27 +00:00
17 lines
401 B
TypeScript
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;
|
|
}
|
|
}
|