mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 23:36:36 +00:00
Fix icon buttons in Safari (#10293)
This commit is contained in:
parent
ec47e320d2
commit
93f64de875
@ -28,8 +28,9 @@ export class HaIconButton extends LitElement {
|
|||||||
.title=${this.hideTitle ? "" : this.label}
|
.title=${this.hideTitle ? "" : this.label}
|
||||||
.disabled=${this.disabled}
|
.disabled=${this.disabled}
|
||||||
>
|
>
|
||||||
${this.path ? html`<ha-svg-icon .path=${this.path}></ha-svg-icon>` : ""}
|
${this.path
|
||||||
<slot></slot>
|
? html`<ha-svg-icon .path=${this.path}></ha-svg-icon>`
|
||||||
|
: html`<slot></slot>`}
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@ -47,9 +48,6 @@ export class HaIconButton extends LitElement {
|
|||||||
--mdc-theme-on-primary: currentColor;
|
--mdc-theme-on-primary: currentColor;
|
||||||
--mdc-theme-text-disabled-on-light: var(--disabled-text-color);
|
--mdc-theme-text-disabled-on-light: var(--disabled-text-color);
|
||||||
}
|
}
|
||||||
ha-icon {
|
|
||||||
--ha-icon-display: inline;
|
|
||||||
}
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user