From 8f31c182f6674dc8c42fb9108fc5202138aeef8e Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Fri, 21 Jan 2022 22:56:36 +0100 Subject: [PATCH] Remove SVG icons from accessibility tree (#11389) --- src/components/ha-svg-icon.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ha-svg-icon.ts b/src/components/ha-svg-icon.ts index b8f6a3b5c7..5810dd6bb8 100644 --- a/src/components/ha-svg-icon.ts +++ b/src/components/ha-svg-icon.ts @@ -12,7 +12,10 @@ export class HaSvgIcon extends LitElement { + focusable="false" + role="img" + aria-hidden="true" + > ${this.path ? svg`` : ""}