From 93f64de8750d0765f5c43d5a27733aa28815ea0b Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Sat, 16 Oct 2021 23:03:26 +0200 Subject: [PATCH] Fix icon buttons in Safari (#10293) --- src/components/ha-icon-button.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/ha-icon-button.ts b/src/components/ha-icon-button.ts index 98a0b68e62..d4f9ce8ba7 100644 --- a/src/components/ha-icon-button.ts +++ b/src/components/ha-icon-button.ts @@ -28,8 +28,9 @@ export class HaIconButton extends LitElement { .title=${this.hideTitle ? "" : this.label} .disabled=${this.disabled} > - ${this.path ? html`` : ""} - + ${this.path + ? html`` + : html``} `; } @@ -47,9 +48,6 @@ export class HaIconButton extends LitElement { --mdc-theme-on-primary: currentColor; --mdc-theme-text-disabled-on-light: var(--disabled-text-color); } - ha-icon { - --ha-icon-display: inline; - } `; } }