-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(MatTab): Allow MatTab to be focusable when being disabled #26395
Copy link
Copy link
Closed
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)GThis is is related to a Google internal issueThis is is related to a Google internal issueP3An 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 urgentfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Description
Feature Description
Currently a disabled MatTab is not focusable. In Enabled tab vs Disabled tab demo, when we place the focus indicator on "Enabled tab 1" and use left/right arrow keys to navigate, we can see that "Disabled tab 1" is bypassed.
This is fine for most cases, however, if there is a tooltip attached to the disabled tab which announces the reason why the tab is disabled, it would be hard for screen reader users to focus on it and read the message out. Because of that, 6.7 Focusability of disabled controls encourages developers to keep "Tab elements in a set of Tabs" focusable when being disabled, for the purpose of accessibility.
Use Case
We expect disabled tabs to be keyboard focusable, in details,
- We want focus indicators to render appropriately on disabled tabs with appropriate contrast ratio.
- We should consider making similar changes to other components mentioned in 6.7 Focusability of disabled controls if applicable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)GThis is is related to a Google internal issueThis is is related to a Google internal issueP3An 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 urgentfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues