Skip to content

make aria-describedby optional for matTooltip #15048

Closed
@jasonzhang2022

Description

@jasonzhang2022

Bug, feature request, or proposal:

when matTooltip is used, aria-describedby is auto added. I want to make this optional.

What is the expected behavior?

Make this optional.

What is the current behavior?

It is automatically, there is no way to turn this off.

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

What is the use-case or motivation for changing an existing behavior?

when JAWS is used, JAWS ignores aria-describeby during linear navigation.

aria-label can be recognized by all screen reader.

However, If I have both matTooltip, and aria-label, the text will be announced twice by VoiceOver and Vox.

So I intend to use the matTooltip like this

[matTooltip]="my text" aria-label="my text" no-describedby.

By this way, I completely control the accessibility behavior.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)GThis is is related to a Google internal issueneed a11y consultTeam needs to consult with an accessibility expert before proceedingneeds: discussionFurther discussion with the team is needed before proceeding

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions