You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Tooltip component's arrow element can overlap with the tooltip content in certain scenarios. This happens because the arrow (which is implemented as a rotated square) has a z-index that places it above the content, potentially obscuring parts of the text.
Affected component/components
Tooltip [v4]
How to reproduce
Install the latest v4 version of the Shadcn Tooltip component (new-york style, slate theme if it matters).
Render the following tooltip (note the p-0 on the <TooltipContent> to highlight the issue:
Describe the bug
The Tooltip component's arrow element can overlap with the tooltip content in certain scenarios. This happens because the arrow (which is implemented as a rotated square) has a z-index that places it above the content, potentially obscuring parts of the text.
Affected component/components
Tooltip [v4]
How to reproduce
new-york
style,slate
theme if it matters).p-0
on the<TooltipContent>
to highlight the issue:To be clear, this issue appeared in a more special case without setting
p-0
on the<TooltipContent>
.Here's a snapshot of the exact implementation of the Tooltip component that causes the issue:
Codesandbox/StackBlitz link
https://codesandbox.io/p/devbox/shadcn-tooltip-arrow-issue-8xdqwl
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: