Skip to content

Commit 8f31c18

Browse files
authored
Remove SVG icons from accessibility tree (#11389)
1 parent e51a819 commit 8f31c18

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/ha-svg-icon.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export class HaSvgIcon extends LitElement {
1212
<svg
1313
viewBox=${this.viewBox || "0 0 24 24"}
1414
preserveAspectRatio="xMidYMid meet"
15-
focusable="false">
15+
focusable="false"
16+
role="img"
17+
aria-hidden="true"
18+
>
1619
<g>
1720
${this.path ? svg`<path d=${this.path}></path>` : ""}
1821
</g>

0 commit comments

Comments
 (0)