Repository navigation
[tooltip][popover] Refactor popup auto resize logic - #3652
Merged
Merged
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
atomiks
force-pushed
the
refactor/tooltip-popover-viewport
branch
2 times, most recently
from
December 31, 2025 11:45
2286519 to
43ca79a
Compare
atomiks
marked this pull request as ready for review
December 31, 2025 11:57
LukasTy
approved these changes
Jan 7, 2026
LukasTy
left a comment
Member
There was a problem hiding this comment.
LGTM, couldn't find or spot any issues.
michaldudak
reviewed
Jan 7, 2026
atomiks
force-pushed
the
refactor/tooltip-popover-viewport
branch
from
January 9, 2026 04:17
43ca79a to
b6316ec
Compare
1 task done
michaldudak
added a commit
to michaldudak/base-ui
that referenced
this pull request
Jan 13, 2026
michaldudak
added a commit
to michaldudak/base-ui
that referenced
this pull request
Jan 13, 2026
atomiks
added a commit
to atomiks/base-ui
that referenced
this pull request
Jan 14, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
usePopupAutoResize()intoViewportpart for treeshaking when it's not being used.translate()positioning is used instead oftop/leftif theViewportpart is missing. This should solve things like this https://x.com/sajadevo_/status/2004063902636945842 (I have no way to verify though) because it rounds to the device's subpixel grid instead of being totally unrounded. This also ensures you can use detached triggers without needing to specify--popup-width/--positioner-widthetc. variables as it's explicitly opt-in.