Fix icon buttons in Safari (#10293)

This commit is contained in:
Bram Kragten 2021-10-16 23:03:26 +02:00 committed by GitHub
parent ec47e320d2
commit 93f64de875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,9 @@ export class HaIconButton extends LitElement {
.title=${this.hideTitle ? "" : this.label}
.disabled=${this.disabled}
>
${this.path ? html`<ha-svg-icon .path=${this.path}></ha-svg-icon>` : ""}
<slot></slot>
${this.path
? html`<ha-svg-icon .path=${this.path}></ha-svg-icon>`
: html`<slot></slot>`}
</mwc-icon-button>
`;
}
@ -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;
}
`;
}
}