-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/chips): allow focusing disabled listbox options (#25771)
Allow user to focus to disabled listbox options. Unlike other chips, disabled `MatChipOption` remains in the tab order, but it cannot be clicked. This aligns with WAI ARIA documented best practice to allow focusing disabled listbox options. Fix issue where screen reader does not announce disabled item in single selection list. Summary of API and behavior changes: - when disabled, `MatChipOption` sets `aria-disabled="true"` and omits `disabled` attribute. - Add private `@Input _alowFocusWithDisabled` to `MatChipAction` to support focusing the action when it is disabled. - `MatChipSet` defines `_skipPredicate` as an instance member which dervied classes may override. `_alowFocusWithDisabled` and `_skipPredicate` are internal API to the chips.
- Loading branch information
Showing
7 changed files
with
63 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters