The navigation block is difficult to locate and use with a screen reader #36600
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] Bug
An existing feature does not function as intended
Description
This issue refers to the markup of the navigation block on the front of the website.
During the testing, the navigation block setting "overlay menu" is set to mobile which is the default.
When you use a screen reader to navigate between the elements on the page, the markup of the navigation block is unexpected and confusing.
The list appears to be inside a dialog, and there is no information about if the dialog is opened or closed.
On desktop width, there is no button to perform an action (like closing the dialog) because the button is hidden.
Quoting a report by @alexstine on WordPress slack:
When navigating with arrow keys:
"It seems like you cannot enter the desktop menu because there is no button to focus the dialog or close the dialog."
"How are users supposed to enter and exit the dialog?"
When tabbing:
"In desktop mode, I can tab in to the dialog. The dialog does not have aria-hidden="true"."
"In mobile mode, I get the Open menu button and get placed inside the dialog."
Alex also reported that on the staging site for Twenty Twenty-Two, the result is different compared to his local environment and he is unable to locate the menu in the header:
"This is what I hear on the page.
Skip to content
My WordPress Site
Hello world!"
Using NVDA (factory default settings) and Chrome on Windows, NVDA announces the following when I reach the navigation block:
Navigation landmark
Dialog
If I press enter once I hear the first "dialog", the word dialog is repeated two more times:
navigation landmark
dialog (enter)
dialog
dialog
visited link Link text
Or in case of a page list with a submenu:
navigation landmark
dialog (enter)
dialog
dialog
button Menu item name collapsed
Step-by-step reproduction instructions
Are you able to locate the menu, access the menu items, open and close submenus?
Screenshots, screen recording, code snippet
No response
Environment info
-WordPress trunk
-Current Gutenberg trunk
Tested with Twenty Twenty-two.
Chrome, Windows 10, NVDA.
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: