primitives
primitives copied to clipboard
[Tooltip] Content is duplicated in the DOM
Bug report
Current Behavior
The Tooltip component is duplicating content in the DOM, creating a usability issue since users, using screen readers, will hear it twice when navigating with arrow keys.
Expected behavior
Tooltip content should only be rendered once
Reproducible example
Suggested solution
Make it so the content is only in the DOM once or if absolutely necessary make the duplicated content not accessible by screen readers.
Additional context
Notice the 'Add to library' text is added twice:
Your environment
| Software | Name(s) | Version |
|---|---|---|
| Radix Package(s) | ||
| React | n/a | |
| Browser | ||
| Assistive tech | ||
| Node | n/a | |
| npm/yarn/pnpm | ||
| Operating System |
Fixed on PR #3767