primitives icon indicating copy to clipboard operation
primitives copied to clipboard

[Tooltip] Content is duplicated in the DOM

Open joseerobless opened this issue 3 months ago • 1 comments

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

CodeSandbox

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:

Image

Your environment

Software Name(s) Version
Radix Package(s)
React n/a
Browser
Assistive tech
Node n/a
npm/yarn/pnpm
Operating System

joseerobless avatar Oct 01 '25 15:10 joseerobless

Fixed on PR #3767

abhidatta0 avatar Dec 03 '25 15:12 abhidatta0