Add the ability to manually define an aria-label for the navigation block #66935
Labels
[Block] Navigation
Affects the Navigation Block
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
The core navigation block uses the name of the Navigation post that is assigned to it as it's aria label.
This behavior is not documented/called out anywhere.
Since the name of a navigation menu in the admin isn't necessarily very prescriptive to a user using a screen reader on the front end of the site, it would be great to be able to decouple this aria-label from the title of the navigation post.
We should still leave that behavior as the default/fallback in case no label gets specified manually. However, having the ability to define a custom label via the advanced settings panel would be a great improvement.
This way that actual label could already get defined in code rather than relying on the user to set it correctly.
The text was updated successfully, but these errors were encountered: