From 5ec37a35f1cacad04867b6c71642d07e3ff78001 Mon Sep 17 00:00:00 2001 From: Christopher Toth Date: Mon, 13 Dec 2021 01:35:46 -0700 Subject: [PATCH] Fix all instances where HTML ARIA-ROLE should actually just be role (#10888) --- src/components/ha-alert.ts | 1 + src/components/ha-sidebar.ts | 6 +++--- src/panels/config/dashboard/ha-config-navigation.ts | 2 +- .../integration-panels/ozw/ozw-config-dashboard.ts | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/ha-alert.ts b/src/components/ha-alert.ts index b6f2f52a46..aa6848a48b 100644 --- a/src/components/ha-alert.ts +++ b/src/components/ha-alert.ts @@ -46,6 +46,7 @@ class HaAlert extends LitElement { rtl: this.rtl, [this.alertType]: true, })}" + role="alert" >
diff --git a/src/components/ha-sidebar.ts b/src/components/ha-sidebar.ts index 6b9008984f..62d0e7d333 100644 --- a/src/components/ha-sidebar.ts +++ b/src/components/ha-sidebar.ts @@ -393,7 +393,7 @@ class HaSidebar extends LitElement { ) { return html` @@ -529,7 +529,7 @@ class HaSidebar extends LitElement { href="/profile" data-panel="panel" tabindex="-1" - aria-role="option" + role="option" aria-label=${this.hass.localize("panel.profile")} @mouseenter=${this._itemMouseEnter} @mouseleave=${this._itemMouseLeave} diff --git a/src/panels/config/dashboard/ha-config-navigation.ts b/src/panels/config/dashboard/ha-config-navigation.ts index 5f29dadc89..66c47ccb64 100644 --- a/src/panels/config/dashboard/ha-config-navigation.ts +++ b/src/panels/config/dashboard/ha-config-navigation.ts @@ -31,7 +31,7 @@ class HaConfigNavigation extends LitElement { : canShowPage(this.hass, page) ) ? html` - +