-
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
bug(cdk/listbox): Keyboard focus is not follow ARIA doc #25833
Labels
Accessibility
This issue is related to accessibility (a11y)
area: cdk/listbox
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Dec 3, 2022
Fixes that the listbox was setting the initial focus on a deselected option when a selected one was available. **Note:** this fix is a bit more convoluted that it needs to be. E.g. ideally we would just focus the selected option when the listbox receives focus. We can't do that, because the listbox supports two different focus management modes: focus and `aria-activedescendant`. The former doesn't allow tabbing to the listbox. Fixes angular#25833.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Dec 4, 2022
Fixes that the listbox was setting the initial focus on a deselected option when a selected one was available. **Note:** this fix is a bit more convoluted that it needs to be. E.g. ideally we would just focus the selected option when the listbox receives focus. We can't do that, because the listbox supports two different focus management modes: focus and `aria-activedescendant`. The former doesn't allow tabbing to the listbox. Fixes angular#25833.
crisbeto
added a commit
that referenced
this issue
Dec 5, 2022
Fixes that the listbox was setting the initial focus on a deselected option when a selected one was available. **Note:** this fix is a bit more convoluted that it needs to be. E.g. ideally we would just focus the selected option when the listbox receives focus. We can't do that, because the listbox supports two different focus management modes: focus and `aria-activedescendant`. The former doesn't allow tabbing to the listbox. Fixes #25833.
crisbeto
added a commit
that referenced
this issue
Dec 5, 2022
Fixes that the listbox was setting the initial focus on a deselected option when a selected one was available. **Note:** this fix is a bit more convoluted that it needs to be. E.g. ideally we would just focus the selected option when the listbox receives focus. We can't do that, because the listbox supports two different focus management modes: focus and `aria-activedescendant`. The former doesn't allow tabbing to the listbox. Fixes #25833. (cherry picked from commit f99af6d)
wagnermaciel
pushed a commit
to wagnermaciel/components
that referenced
this issue
Dec 9, 2022
Fixes that the listbox was setting the initial focus on a deselected option when a selected one was available. **Note:** this fix is a bit more convoluted that it needs to be. E.g. ideally we would just focus the selected option when the listbox receives focus. We can't do that, because the listbox supports two different focus management modes: focus and `aria-activedescendant`. The former doesn't allow tabbing to the listbox. Fixes angular#25833.
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Accessibility
This issue is related to accessibility (a11y)
area: cdk/listbox
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
N/A
Description
@angular/cdk/listbox
is not follow ARIA Keyboard Interaction. https://www.w3.org/WAI/ARIA/apg/patterns/listbox/#listbox_kbd_interactionBut cdk/listbox always go to last focus item. BTW, the
<mat-list>
is follow the ARIA doc,Reproduction
Steps to reproduce:
tab
into list and selectC++
arrow down
intoJavaScript
tab
out to listshift+ tab
into listExpected Behavior
shift+ tab
into list, should go to selected itemC++
Actual Behavior
shift+ tab
into list, go to last focus item which isJavaScript
Environment
The text was updated successfully, but these errors were encountered: