-
Notifications
You must be signed in to change notification settings - Fork 209
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
[Bug][a11y]: ActionGroup should have role="toolbar" as default / selected button should use aria-pressed #3221
Comments
majornista
added a commit
to majornista/spectrum-web-components
that referenced
this issue
May 22, 2023
…oolbar" as default Selected button without selects="single" or selected="multiple" should use aria-pressed.
13 tasks
majornista
added a commit
to majornista/spectrum-web-components
that referenced
this issue
May 23, 2023
…xample to docs
majornista
added a commit
to majornista/spectrum-web-components
that referenced
this issue
May 24, 2023
Westbrook
pushed a commit
to majornista/spectrum-web-components
that referenced
this issue
May 30, 2023
…oolbar" as default Selected button without selects="single" or selected="multiple" should use aria-pressed.
Westbrook
pushed a commit
to majornista/spectrum-web-components
that referenced
this issue
May 30, 2023
…xample to docs
Westbrook
pushed a commit
to majornista/spectrum-web-components
that referenced
this issue
May 30, 2023
majornista
added a commit
to majornista/spectrum-web-components
that referenced
this issue
May 30, 2023
… developer responsibility
Westbrook
pushed a commit
that referenced
this issue
May 30, 2023
…nd buttons * fix(action-group): should have role="toolbar" as default, selected button without selects="single" or selected="multiple" should use aria-pressed * docs(action-group): #3221 [a11y]: ActionGroup add accessibility example to docs * docs(action-group): #3221 [a11y]: ActionGroup update docs example * docs(action-group): #3221 Update README.md wording to clarify the developer responsibility
13 tasks
completed via #3227 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code of conduct
Impacted component(s)
ActionGroup
Expected behavior
Since ActionGroup uses the RovingTabindexController to manage focus using arrow keys to navigate between items, we should add
role="toolbar"
when no other role or selection mode is specified, so that screen readers will switch into forms mode and keyboard navigation will behave as expected.Also, when
selects
isundefined
, selected buttons should usearia-pressed
rather thanaria-checked
.Actual behavior
ActionGroup does not use
role="toolbar"
when no other role or selection mode is specified, so arrow keys will continue to navigate using a screen reader's browse/virtual cursor mode rather than move focus as they should for a toolbar.Also, selected items with
role="button"
usearia-checked
, when they should usearia-pressed
:See:
spectrum-web-components/packages/action-group/src/ActionGroup.ts
Lines 271 to 300 in 123f54c
Screenshots
No response
What browsers are you seeing the problem in?
No response
How can we reproduce this issue?
Sample code that illustrates the problem
See:
spectrum-web-components/packages/action-group/src/ActionGroup.ts
Lines 271 to 300 in 123f54c
Logs taken while reproducing problem
No response
The text was updated successfully, but these errors were encountered: