Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move label in header to from list to nav
Move the 'Navigation menu' label from the `<ul>` to the parent `<nav>` element. This has previously been flagged as a 'possible misuse of `aria-label`.' According to WAI ARIA Practises 1.2 [2], it's recommended to label navigation regions, especially as 'if a page includes more than one navigation landmark, each should have a unique label' [3]. Lists can optionally be labelled, but this is only '_potentially_ beneficial for users of screen readers that support both list names and navigation among lists on a page'. Applying the label to both the list and the parent navigation could be noisy – "Potentially a source of distracting or undesirable screen reader verbosity, especially if nested within a named container, such as a navigation region." The provided examples [4] also apply the label consistently to the navigation region (albeit using `aria-labelledby`) [1]: #1340 (comment) [2]: https://www.w3.org/TR/wai-aria-practices-1.1/#naming_role_guidance [3]: https://www.w3.org/TR/wai-aria-practices-1.1/#aria_lh_navigation [4]: https://www.w3.org/TR/wai-aria-practices-1.1/examples/landmarks/navigation.html
- Loading branch information