Remove SVG icons from accessibility tree (#11389)

This commit is contained in:
Philip Allgaier 2022-01-21 22:56:36 +01:00 committed by GitHub
parent e51a819bfd
commit 8f31c182f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,10 @@ export class HaSvgIcon extends LitElement {
<svg
viewBox=${this.viewBox || "0 0 24 24"}
preserveAspectRatio="xMidYMid meet"
focusable="false">
focusable="false"
role="img"
aria-hidden="true"
>
<g>
${this.path ? svg`<path d=${this.path}></path>` : ""}
</g>