-
Notifications
You must be signed in to change notification settings - Fork 6.8k
bug(material/list): can tab to a disabled list when selecting an item before disabling it #25730
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
Labels
Accessibility
This issue is related to accessibility (a11y)
area: material/list
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
zarend
added a commit
to zarend/components
that referenced
this issue
Sep 30, 2022
…bled Remove list options from the tab order when the entire slection list is disabled. Fix accessibility issue where end user can tab to a disabled selection list. ``` <mat-selection-list disabled> <mat-list-option>A</mat-list-option> <!-- ^ should have tabindex="-1" since entire list is disabled --> </mat-selection-list> ``` Approach is to consider a disabled mat-selection-list with a mat-list-option having `tabindex="0"` an invalid state. When disabled Input on the seleciton list is set to true, set tabindex to -1 on every list option. fixes angular#25730
zarend
added a commit
to zarend/components
that referenced
this issue
Sep 30, 2022
…bled Remove list options from the tab order when the entire slection list is disabled. Fix accessibility issue where end user can tab to a disabled selection list. ``` <mat-selection-list disabled> <mat-list-option>A</mat-list-option> <!-- ^ should have tabindex="-1" since entire list is disabled --> </mat-selection-list> ``` Approach is to consider a disabled mat-selection-list with a mat-list-option having `tabindex="0"` an invalid state. When disabled Input on the seleciton list is set to true, set tabindex to -1 on every list option. fixes angular#25730
zarend
added a commit
to zarend/components
that referenced
this issue
Oct 5, 2022
…bled Remove list options from the tab order when the entire slection list is disabled. Fix accessibility issue where end user can tab to a disabled selection list. ``` <mat-selection-list disabled> <mat-list-option>A</mat-list-option> <!-- ^ should have tabindex="-1" since entire list is disabled --> </mat-selection-list> ``` Approach is to consider a disabled mat-selection-list with a mat-list-option having `tabindex="0"` an invalid state. When disabled Input on the seleciton list is set to true, set tabindex to -1 on every list option. fixes angular#25730
zarend
added a commit
to zarend/components
that referenced
this issue
Oct 6, 2022
…bled Remove list options from the tab order when the entire slection list is disabled. Fix accessibility issue where end user can tab to a disabled selection list. ``` <mat-selection-list disabled> <mat-list-option>A</mat-list-option> <!-- ^ should have tabindex="-1" since entire list is disabled --> </mat-selection-list> ``` Approach is to consider a disabled mat-selection-list with a mat-list-option having `tabindex="0"` an invalid state. When disabled Input on the seleciton list is set to true, set tabindex to -1 on every list option. fixes angular#25730
zarend
added a commit
to zarend/components
that referenced
this issue
Oct 6, 2022
…bled Remove list options from the tab order when the entire slection list is disabled. Fix accessibility issue where end user can tab to a disabled selection list. ``` <mat-selection-list disabled> <mat-list-option>A</mat-list-option> <!-- ^ should have tabindex="-1" since entire list is disabled --> </mat-selection-list> ``` Approach is to consider a disabled mat-selection-list with a mat-list-option having `tabindex="0"` an invalid state. When disabled Input on the seleciton list is set to true, set tabindex to -1 on every list option. fixes angular#25730
zarend
added a commit
to zarend/components
that referenced
this issue
Oct 11, 2022
…bled Remove list options from the tab order when the entire slection list is disabled. Fix accessibility issue where end user can tab to a disabled selection list. ``` <mat-selection-list disabled> <mat-list-option>A</mat-list-option> <!-- ^ should have tabindex="-1" since entire list is disabled --> </mat-selection-list> ``` Approach is to consider a disabled mat-selection-list with a mat-list-option having `tabindex="0"` an invalid state. When disabled Input on the seleciton list is set to true, set tabindex to -1 on every list option. fixes angular#25730
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: material/list
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
No response
Description
Selecting an item in a list, then disabling the list leaves the selected item in the tab order. Should never be able to tab to the list after disabling it.
Reproduction
Steps to reproduce:
Expected Behavior
Focus is not on the "Selection list"
Actual Behavior
Focus is on the "Selection list"

Environment
The text was updated successfully, but these errors were encountered: