mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 02:49:51 +00:00
27 lines
761 B
TypeScript
27 lines
761 B
TypeScript
import { OutlinedButton } from "@material/web/button/internal/outlined-button";
|
|
import { styles as sharedStyles } from "@material/web/button/internal/shared-styles";
|
|
import { styles } from "@material/web/button/internal/outlined-styles";
|
|
import { css } from "lit";
|
|
import { customElement } from "lit/decorators";
|
|
|
|
@customElement("ha-outlined-button")
|
|
export class HaOutlinedButton extends OutlinedButton {
|
|
static override styles = [
|
|
sharedStyles,
|
|
styles,
|
|
css`
|
|
:host {
|
|
--ha-icon-display: block;
|
|
--md-sys-color-primary: var(--primary-text-color);
|
|
--md-sys-color-outline: var(--outline-color);
|
|
}
|
|
`,
|
|
];
|
|
}
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
"ha-outlined-button": HaOutlinedButton;
|
|
}
|
|
}
|