-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/listbox
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
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_interaction
If an option is selected before the listbox receives focus, focus is set on the selected option.
But cdk/listbox always go to last focus item. BTW, the <mat-list>
is follow the ARIA doc,
Reproduction
Steps to reproduce:
- visit https://material.angular.io/cdk/listbox/examples#cdk-listbox-reactive-forms
tab
into list and selectC++
arrow down
intoJavaScript
tab
out to listshift+ tab
into list
the example is single selection list box, but multiple selection list box also has some issue.
Expected Behavior
shift+ tab
into list, should go to selected item C++
Actual Behavior
shift+ tab
into list, go to last focus item which is JavaScript
Environment
- Angular: 14.2.0
- CDK/Material: 14.2.3
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Metadata
Metadata
Assignees
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/listbox