-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
A11y keyboard focus control in the Toolbar Component #3604
Comments
We already had a similar issue for this #2909. I'm not sure whether the |
Here's the relevant excerpt from the w3c doc for convenience:
@jelbourn is this something we want to tackle in md-toolbar or leave it up to the user? Maybe we could make a directive that users can put on any container to turn the tab stops into arrow-key managed activedescendants? |
I'm wondering here is what we call a "toolbar" is the same thing that the WAI-ARIA considers a toolbar. Our We should check with internal a11y eng for clarification. |
@jelbourn Any updates on this? |
I think the resolution here is to add an
|
The a11y section has been added in 1b6b270#diff-bffb761b9b560b8ea8a59421fa247316 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug:
The Toolbar component is not in the page focus order, and has no interactive child elements for testing.
What is the expected behavior?
Tab key should move focus to the Toolbar and arrow keys move between the child elements.
What is the current behavior?
Currently the Toolbar is not in the focus order and has no buttons.
What are the steps to reproduce?
See below.
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U
What is the use-case or motivation for changing an existing behavior?
To create a usable component.
Which versions of Angular, Material, OS, browsers are affected?
Using screen reader JAWS17 with browsers Firefox, Internet Explorer 11, and Google Chrome.
Is there anything else we should know?
Screen reader user experience follows:
Press Tab key to move focus to the Toolbar example component.
The screen reader focus skips over the Toolbar example and lands on the "Learn Angular" in the page footer.
The MD-TOOLBAR module has role=toolbar, but has no focusable child elements.
The MD-TOOLBAR-ROW module has 6 image elements, each having a text label (aria-label=verified_user) and "role=img" to identify the image, but they are not in the focus order.
The Toolbar component cannot be tested with the screen reader, as there are no interactive Toolbar Buttons.
Keyboard Toolbar handling.
Typically a toolbar is a container for grouping a set of controls, like buttons.
The keyboard Tab sequence should stop on the toolbar (focus is set on the first control that is not disabled), and arrow keys used to move focus among the controls in the toolbar.
Resources: WAI-ARIA Authoring Practices 1.1
2.22 Toolbar
https://www.w3.org/TR/wai-aria-practices-1.1/#menu#h-toolbar
The text was updated successfully, but these errors were encountered: