Skip to content

bug(MatTooltip): Screen Reader reads disabled MatTooltip #29501

Closed
@svetsem

Description

@svetsem

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

aria-describedby attribute should not be present at the host element when tooltip is disabled

Reproduction

Can be reproduced in documentation

Steps to reproduce:

  1. Click "Tooltip disabled" checkbox
  2. Use SR to check that tooltip is stiil readable
  3. Check that aria-describedby is present on the button element

Expected Behavior

Disabled tooltip is not exposed to assistive technologies

Actual Behavior

Screen reader reads disabled tooltip

Environment

  • CDK/Material: 18.1.2
  • Browser(s): Safari, Chrome
  • Operating System: macOS 14.2.1
  • Screen reader: VoiceOver

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tooltip

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions