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
Hovering a sponsor on the homepage can put its name behind a neighboring logo. Move the shared tooltip's existing layer value to Base UI's positioned wrapper so the popup can sit above the homepage stacking context.
AI review notes: reproduced with the actual OssSponsors and Tooltip components in a local Chromium fixture using synthetic sponsor images and the homepage's stacking context. Before the change, hit testing the tooltip center returned the neighboring logo; afterward it returned the tooltip. This was a component fixture, not a deployed-page check.
Validation: pnpm test, formatting, and git diff --check.
Summary by CodeRabbit
Bug Fixes
Improved tooltip layering to help tooltips display correctly relative to surrounding content.
This change moves the tooltip's stacking layer to its positioned wrapper so sponsor tooltips render above neighboring logos. The change is small and localized, with no identified regression risk, so it is ready to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the fix and the affected element: sponsor tooltips now stay above page content. The raw summary confirms the change moves the tooltip stacking class from BaseTooltip.Popup to BaseToolt…
Linked Issues check
[#1647] The issue reports that a sponsor tooltip renders behind a neighboring logo, and that this affects all logos. The only changed source file is src/ui/Tooltip.tsx. The diff moves the z-index util…
Out of Scope Changes check
The whole-PR diff against the merge base changes one file, src/ui/Tooltip.tsx, with a small edit. The edit adds className with the z-index to the Positioner and removes the same z-index from the Pop…
Full details: Title check
Explanation
The title names the fix and the affected element: sponsor tooltips now stay above page content. The raw summary confirms the change moves the tooltip stacking class from BaseTooltip.Popup to BaseTooltip.Positioner, and the objectives say this fixes tooltips rendering behind neighboring homepage logos (issue #1647). The title is specific and matches the main change.
Full details: Linked Issues check
Explanation
[#1647] The issue reports that a sponsor tooltip renders behind a neighboring logo, and that this affects all logos. The only changed source file is src/ui/Tooltip.tsx. The diff moves the z-index utility z-[var(--z-above-overlay)] from BaseTooltip.Popup to BaseTooltip.Positioner. The Positioner is the fixed-position wrapper that Base UI places in the portal. A z-index on the inner Popup only orders the Popup inside the Positioner's stacking context, so the Positioner must carry the layer value to order the tooltip above sibling logos. The shared Tooltip component serves the OSS sponsor tooltips, so the fix applies to all logos. The PR description reports a local Chromium fixture check: hit testing at the tooltip center returned the neighboring logo before the change and returned the tooltip after it. The fixture result is author-reported and was not committed as an automated test. The issue asks for no test, so the missing committed test does not fail this requirement. Source evidence supports the fix; I did not run the fixture.
Full details: Out of Scope Changes check
Explanation
The whole-PR diff against the merge base changes one file, src/ui/Tooltip.tsx, with a small edit. The edit adds className with the z-index to the Positioner and removes the same z-index from the Popup class list. The rounded, padding, text, background, shadow, and transform-origin classes stay on the Popup. The change connects directly to #1647. The change adds no unrelated refactoring, dependency, or documentation edits.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 497535e4-5d16-42a7-98d5-1363d72742fd
Commits
Reviewing files that changed from the base of the PR and between 49802ad and bf72471.
Files selected for processing: 1
src/ui/Tooltip.tsx
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hovering a sponsor on the homepage can put its name behind a neighboring logo. Move the shared tooltip's existing layer value to Base UI's positioned wrapper so the popup can sit above the homepage stacking context.
Fixes #1647. Thanks @sunnyfeijen for the report.
AI review notes: reproduced with the actual OssSponsors and Tooltip components in a local Chromium fixture using synthetic sponsor images and the homepage's stacking context. Before the change, hit testing the tooltip center returned the neighboring logo; afterward it returned the tooltip. This was a component fixture, not a deployed-page check.
Validation: pnpm test, formatting, and git diff --check.
Summary by CodeRabbit