-
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)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 urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix
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.
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 urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix