Navigation: Prioritize menu name and make it more prominent in the UI #59706
Labels
[Feature] Navigation Menus
Any issue relating to Navigation Menus
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Needs Design
Needs design efforts.
[Package] Block library
/packages/block-library
[Type] Bug
An existing feature does not function as intended
Description
Splitting this out from #59440
On the front end, navigation menu must use a
<nav>
element. When there's more than one<nav>
element (and this is likely the majority of the cases), each<nav>
must be distinguished by the means of a meaningfularia-label
attribute.The label should not contain the word 'navigation' because screen readers alraedy announce a
<nav>
element as 'navigation'..W3C tutorial and reference to success criteria:
https://www.w3.org/WAI/tutorials/page-structure/labels/
Instead, right now the editor ui:
aria-label="Header navigation 3"
aria-label="Footer navigation"
.Given the fundamental importance of giving a menu a meaningful name, the current design that deprioritizes the menu name misses a functional requirement and it's far from ideal.
Instead of making the naming automatic and deprioritizing the menu name in the UI, the design shoudl be reversed.
Cc @joedolson @alexstine
Step-by-step reproduction instructions
N/A
Screenshots, screen recording, code snippet
In the site editor navigation panel there is no way to creat a new menu. It's only meant to manage existing menus.
Manu names are clearly exposed and the 'rename' action is in the 'Actions' allipsis dropwodn menu:
Instead, in the Navigation block inspector menu names are not visually exposed other than in the Actions dropdown menu. Newsly created menus are automatically named in a less than ideal way and the control to rename a menu is buried down in the UI:
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: