Repository navigation
Studio: show the hovered icon's tooltip when moving between adjacent icons - #13735
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
@codex security review |
|
@codex review |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 344fab4dc1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <Tooltip> | ||
| // No grace area: the label is wider than the icon, so the path to it covers the next icon in | ||
| // a row and kept this label up (and that icon's away) while the pointer rested there. | ||
| <Tooltip disableHoverableContent={true}> |
There was a problem hiding this comment.
Preserve hover access to icon tooltip content
Setting disableHoverableContent on the shared component makes every icon tooltip close as soon as the pointer leaves its small trigger, so mouse users—particularly users relying on magnification—cannot move onto the label to inspect it. This affects unrelated usages too, including longer explanatory labels such as the disabled compare-send reason in shared-composer.tsx, and violates the hoverable-content behavior expected for content revealed on hover. Please resolve the adjacent-trigger conflict without globally disabling hover access to all TooltipIconButton content.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Keeping it. The tooltip stays open while the pointer is on the button, so every label (including the send-unavailable reason) is still readable on hover and announced via the sr-only text and aria-describedby. Hoverable content is exactly what causes #13644: Radix's grace polygon from a narrow icon to a wider label covers the neighbouring icon and blocks its tooltip. The sidebar (NAV_TOOLTIP_INTENT), model picker and prompt queue already disable it for the same reason, and none of these labels contain anything interactive.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #13644
Problem
Moving the pointer quickly along the message action bar (Copy, Edit, Refresh, Read aloud, Fork, Delete, More) can leave the previous icon's label up while the pointer rests on its neighbour, for example "Read aloud" shown while Refresh is highlighted. With slightly different timing no label shows at all until the pointer moves again.
Cause
Radix tooltips are hoverable by default: when the pointer leaves a trigger, Radix keeps the tooltip open while the pointer travels inside a grace polygon spanning the exit point and the tooltip content, and while that transit flag is set no other trigger in the provider may open. Icon labels are wider than the 32 px icons and sit flush below them (
sideOffset0), so that polygon covers the lower half of the neighbouring icon. A pointer that stops there keeps the old label up and blocks the hovered icon's own tooltip.Fix
TooltipIconButtonsetsdisableHoverableContenton its tooltip, the same setting the sidebar (NAV_TOOLTIP_INTENT), the model picker and the prompt queue already use for their icon rows. Its tooltip is a plain string label, so nothing in it needs to be reachable with the pointer. This covers everyTooltipIconButton(action bars, composer, attachments, prompt queue, dictation bar).Test
tests/studio/playwright_tooltip_switch.pyrenders the action bar row with the productionTooltipIconButton(smoke-tooltip-switch.html), hovers each icon, moves to each neighbour at 9 points inside the round button, and reads the open tooltip. It runs in Frontend CI next to the composer icon check.(moves that showed a label other than the hovered icon's, or none)
npm testpasses (12122 tests) andtsc -bis clean.Before / after
Production
TooltipIconButtonaction bar, dark theme, pointer moved from Read aloud onto the lower right of Refresh (merge base vs this branch):