Tooltip: Not accessible because aria-describedby is not set.

Open
#8,508 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript

Research direction

Start with the App.tsx reproducer and compare the standalone and integrated Tooltip behavior described in the issue. Verify how the target is handled when the tooltip becomes visible; done means the target receives the generated tooltip id through aria-describedby in both cases.

Written by the indexing model from the issue text.

Description

Status: Needs Triage
Describe the bug

The tooltip documentation states:

Tooltip component uses tooltip role and when it becomes visible the generated id of the tooltip is defined as the aria-describedby of the target.

This does not actually happen.

Reproducer

https://stackblitz.com/edit/vitejs-vite-wjimyrsw?file=src%2FApp.tsx

System Information
PrimeReact 10.9.7, you can see it on the Primereact demo site: https://primereact.org/tooltip/#delay
Steps to reproduce the behavior
  1. Go to the stackblitz.
  2. Use the inspector to select either button or the input.
  3. Hover over the element, showing the tooltip.
  4. Note that aria-describedby is not set on either the button or the input.

This happens both with the standalone and the integrated tooltip.

Expected behavior

Expected aria-describedby of the target to be set.

Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from primefaces/primereact

All issues in primefaces/primereact

Similar issues

More Accessibility issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.