From b5e866aeba49053db0bb0b5566bdbb71e65e4483 Mon Sep 17 00:00:00 2001 From: Joe Glombek Date: Tue, 14 Apr 2020 10:33:30 +0100 Subject: [PATCH] Append "active" to currently selected section for screen readers (#7946) --- .../src/views/components/application/umb-sections.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/components/application/umb-sections.html b/src/Umbraco.Web.UI.Client/src/views/components/application/umb-sections.html index d435c6ead7..f43353ede9 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/application/umb-sections.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/application/umb-sections.html @@ -6,13 +6,15 @@ + prevent-default + ng-attr-aria-current="{{section.alias == currentSection ? 'page' : undefined}}" + aria-label="{{section.name + (section.alias == currentSection ? ' (active)' : '')}}"> {{section.name}}
  • - + ••• @@ -21,7 +23,9 @@ + prevent-default + ng-attr-aria-current="{{section.alias == currentSection ? 'page' : undefined}}" + aria-label="{{section.name + (section.alias == currentSection ? ' (active)' : '')}}"> {{section.name}}