Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks Navigation menu: no semantic information for nested blocks #11713

Closed
afercia opened this issue Nov 10, 2018 · 0 comments
Closed

Blocks Navigation menu: no semantic information for nested blocks #11713

afercia opened this issue Nov 10, 2018 · 0 comments
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). [Type] Bug An existing feature does not function as intended

Comments

@afercia
Copy link
Contributor

afercia commented Nov 10, 2018

When the Blocks Navigation menu displays nested blocks, it visually uses some indentation:

blocks navigation menu nesting 10545

While the visual indication is clear, there's no semantic information or any other kind of information assistive technologies can use to communicate the blocks nesting level. Blocks are announced as if they were in a flat list.

The nesting level is an important information that needs to be communicated to all users. I'm not sure the Menu component is suitable for this purpose. While ARIA menus can have sub-menus, I;d argue the information this component conveys is closer to an ARIA tree.

On the other hand, an ARIA tree is complex to interact with. Considering the menu items should be links as proposed in #11711 I'd recommend to keep things simple and just use a navigation menu that has the ability to render nested unordered lists when necessary. The item "checked" state could be communicated simply using some screen reader text. Nested lists give us the information we need for free:

Simple example: https://www.w3.org/WAI/tutorials/page-structure/content/#nested-lists

screenshot 134

screenshot 2018-11-10 at 14 17 20

@afercia afercia added [Type] Bug An existing feature does not function as intended [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). labels Nov 10, 2018
@designsimply designsimply added the [Feature] List View Menu item in the top toolbar to select blocks from a list of links. label Nov 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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). [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants