Skip to content

Nav component sets aria-label on <nav> element#4266

Merged
dzearing merged 1 commit intomicrosoft:masterfrom
gingi:nav-element-aria-label
Mar 16, 2018
Merged

Nav component sets aria-label on <nav> element#4266
dzearing merged 1 commit intomicrosoft:masterfrom
gingi:nav-element-aria-label

Conversation

@gingi
Copy link
Copy Markdown
Member

@gingi gingi commented Mar 14, 2018

Pull request checklist

Description of changes

The aria-label was set on the nested <ul> element. Per WAI guidelines the aria-label should be set on the element having the "navigation" role (<nav>). This is especially important when multiple navigation landmarks exist in the DOM tree (which need to be distinguished by their aria-label).

Includes unit test to isolate expected behavior.

The aria-label was set on the nested <ul> element. Per [WAI guidelines][1]
the aria-label should be set on the element having the "navigation" role.
This is especially important when multiple navigation landmarks exist in the
DOM tree.

[1]: https://www.w3.org/WAI/GL/wiki/Using_ARIA_landmarks_to_identify_regions_of_a_page
@gingi gingi force-pushed the nav-element-aria-label branch from bcbb371 to 7ad348c Compare March 14, 2018 01:36
@dzearing dzearing merged commit a72e2b0 into microsoft:master Mar 16, 2018
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Accessibility] Nav sets aria-label on wrong nested element

2 participants