Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
svetsem opened this issue Jul 29, 2024 · 1 comment · Fixed by #29520
Closed
1 task

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

svetsem opened this issue Jul 29, 2024 · 1 comment · Fixed by #29520
Assignees
Labels
area: material/tooltip P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@svetsem
Copy link

svetsem commented Jul 29, 2024

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
@svetsem svetsem added the needs triage This issue needs to be triaged by the team label Jul 29, 2024
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent area: material/tooltip and removed needs triage This issue needs to be triaged by the team labels Jul 29, 2024
@crisbeto crisbeto self-assigned this Jul 31, 2024
crisbeto added a commit to crisbeto/material2 that referenced this issue Jul 31, 2024
Fixes that we were setting an `aria-describedby` even if the tooltip won't show up because it's disabled.

Fixes angular#29501.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: material/tooltip P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants