feat(Select): add position prop & align-item#1954
feat(Select): add position prop & align-item#1954maxffarrell wants to merge 15 commits intohuntabyte:mainfrom
Conversation
|
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
docs/content/components/select.md
Outdated
|
|
||
| By default, `Select.Content` uses `position="popper"`, which follows standard Floating UI placement. | ||
|
|
||
| If you want Radix-style item alignment, set `position="item-aligned"`: |
There was a problem hiding this comment.
| If you want Radix-style item alignment, set `position="item-aligned"`: | |
| If you want MacOS native style item alignment, set `position="item-aligned"`: |
CleanShot.2026-02-19.at.14.55.28.mp4This is close, but it needs to account for the scroll buttons potentially being there. I would expect clicking on the trigger and then again quickly without moving my mouse it would hit the selected item and not the scroll button. I will give this a more thorough review when I have some time, as I see some things in the constructor etc that look like they are causing extra work even when the position is not item-aligned. Thank you! |
Co-authored-by: Hunter Johnston <64506580+huntabyte@users.noreply.github.com>
7e4bc25 to
5c7ec55
Compare
70d64d3 to
515b709
Compare
Not sure that the popover behavior is correct, implemented with Codex so it may or may not be useful as a starting point