primefaces / primefaces/primereact
Tooltip: Not accessible because aria-describedby is not set.
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 8.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
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
- Go to the stackblitz.
- Use the inspector to select either button or the input.
- Hover over the element, showing the tooltip.
- Note that
aria-describedbyis 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- react, typescript
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100