From 0fc4571b8564ab22b4861637ea3779fbb4dcfd94 Mon Sep 17 00:00:00 2001 From: dario-piotrowicz Date: Wed, 16 Mar 2022 21:47:16 +0000 Subject: [PATCH] fix(docs-infra): assign different aria labels to main aio navs (#45209) assign different aria labels to the primary nav and the one used for guides and docs, so that impaired users can more easily distinguish the two PR Close #45209 --- aio/src/app/app.component.html | 4 ++-- aio/src/app/layout/nav-menu/nav-menu.component.ts | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/aio/src/app/app.component.html b/aio/src/app/app.component.html index 82bdbb529eb..1e80f99142f 100644 --- a/aio/src/app/app.component.html +++ b/aio/src/app/app.component.html @@ -50,8 +50,8 @@ - - + +
diff --git a/aio/src/app/layout/nav-menu/nav-menu.component.ts b/aio/src/app/layout/nav-menu/nav-menu.component.ts index b20c338a500..12a78c1b6df 100644 --- a/aio/src/app/layout/nav-menu/nav-menu.component.ts +++ b/aio/src/app/layout/nav-menu/nav-menu.component.ts @@ -4,12 +4,18 @@ import { CurrentNode, NavigationNode } from 'app/navigation/navigation.service'; @Component({ selector: 'aio-nav-menu', template: ` - - ` + ` }) export class NavMenuComponent { @Input() currentNode: CurrentNode | undefined; @Input() isWide = false; @Input() nodes: NavigationNode[]; + @Input() navLabel: string; get filteredNodes() { return this.nodes ? this.nodes.filter(n => !n.hidden) : []; } }