fix(web): keep release notes tooltip open on hover - #5337
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved ec744d8 This is a straightforward CSS class reorganization to fix tooltip hover UX. The change moves You can customize Macroscope's approvability policy. Learn more. |
What Changed
Why
The shared tooltip positioner disables pointer events. The release-notes tooltip previously re-enabled them only on the inner scrolling region, leaving a non-interactive boundary around the popup. Moving the cursor from the update pill across that boundary closed the tooltip before the cursor could reach and scroll the notes.
Enabling pointer events on the popup itself lets Base UI preserve its hoverable-popup behavior for the entire release-notes surface.
UI Changes
The appearance is unchanged; this only changes pointer interaction.
Interaction video
The cursor moves from the update pill into the tooltip, then scrolls the release notes without dismissing it.
MP4 recording
Verification
vp test run src/components/sidebar/SidebarUpdatePill.test.tsx --project unitvp run typecheck(apps/web)Checklist
Generated with GPT-5.6 Sol in Cursor.
Note
Low Risk
Localized tooltip pointer-event styling for the nightly release-notes UI; no auth, data, or core logic changes.
Overview
Fixes the nightly desktop update release notes tooltip dismissing when the cursor moves from the update pill into the tooltip padding or heading.
pointer-events-autois applied onTooltipPopupvia exportedNIGHTLY_RELEASE_NOTES_TOOLTIP_CLASS_NAME(withmax-w-noneandtext-balance), instead of only on the inner scroll region. The shared tooltip positioner usespointer-events-none, so re-enabling events on the full popup surface lets Base UI keep the tooltip open while hovering the entire release-notes area.A unit test asserts the shared class string still includes
pointer-events-auto.Reviewed by Cursor Bugbot for commit ec744d8. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix release notes tooltip in sidebar to stay open on hover
Moves
pointer-events-autofrom the inner scrollable div to theTooltipPopupelement itself, so the tooltip stays open as the cursor moves from the update pill into the tooltip. Extracts the nightly tooltip classes into an exportedNIGHTLY_RELEASE_NOTES_TOOLTIP_CLASS_NAMEconstant in SidebarUpdatePill.tsx and adds a test asserting the constant includespointer-events-auto.Macroscope summarized ec744d8.