From 671af7143d1b276020fa54dab2561f65a9929be1 Mon Sep 17 00:00:00 2001 From: Sangeetha Babu Date: Wed, 25 Oct 2023 21:09:52 +0530 Subject: [PATCH] fix(masthead-a11y): navigation role do not have unique labels (#10881) * fix(masthead-a11y):navigation unique labels * fix(masthead-a11y): navigation role do not have unique labels format --------- Co-authored-by: Anna Wen <54281166+annawen1@users.noreply.github.com> Co-authored-by: Ignacio Becerra Co-authored-by: kennylam <909118+kennylam@users.noreply.github.com> Co-authored-by: Ariella Gilmore --- packages/react/src/components/Masthead/MastheadL1.js | 2 +- packages/web-components/src/components/masthead/top-nav.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/react/src/components/Masthead/MastheadL1.js b/packages/react/src/components/Masthead/MastheadL1.js index bd40af51e34..a43273cb210 100644 --- a/packages/react/src/components/Masthead/MastheadL1.js +++ b/packages/react/src/components/Masthead/MastheadL1.js @@ -83,7 +83,7 @@ const MastheadL1 = ({ navigationL1, ...rest }) => { + aria-label="Main Navigation"> {mastheadL1Links} diff --git a/packages/web-components/src/components/masthead/top-nav.ts b/packages/web-components/src/components/masthead/top-nav.ts index bcb4338767b..00c24aac825 100644 --- a/packages/web-components/src/components/masthead/top-nav.ts +++ b/packages/web-components/src/components/masthead/top-nav.ts @@ -595,7 +595,10 @@ class DDSTopNav extends StableSelectorMixin(HostListenerMixin(BXHeaderNav)) {
-