Site editor: List view: incorrect labeling of navigation links #59369
Labels
[Feature] List View
Menu item in the top toolbar to select blocks from a list of links.
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Block editor
/packages/block-editor
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
In the Site Editor > Design > Navigation > Any navigation menu, the navigation links visually show the link label, that is the textual label users enter when they create a linb.
However, the aria-lable of each link is actually the navigation link type, ie. 'Page Link', 'Custom Link', 'Submenu'.
As such:
It is worth reminding that aria-label overrides any textual content. As such, these labels aren't really useful for users, for example:
Screenshot:
In this context, 'Page Link', 'Custom Link', 'Submenu' etc. aren't meaningful names for these items.
Instead, in the Post editor list view, the block type makes more sense. However, the items in teh list view can be many things:
All these cases need the item aria-label to match the text that is visually displayed as that is the text that gives users the correct information about what they are going to edit.
It appears the List View items labeling mechanism hasn't been tested enough in the context of the Site editor navigation links, as the current labeling is clearly insufficient to provide any useful information to users.
Additionally:
Each item may provide additional information like the 'sticky' status or the 'locked' status. These need improvements as well and I will open a separate issue. For now, I'd like to address also the 'Options' ellipsis button. To me, these aren't 'Options'. The concept of options is about settings or preferences, while the dropdown menu provides actions. Also, in other context this ellipsis button is labeled 'Actions', for example in the patterns cards. For a more meaningful naming and for consistency I'd like to rename this button to 'Actions' and simplify it by removing the part 'for %s'.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
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: