Skip to content

feat(MatTab): Allow MatTab to be focusable when being disabled #26395

Closed
@clamli

Description

@clamli

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,

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)GThis is is related to a Google internal issueP3An 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 fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions