-
Notifications
You must be signed in to change notification settings - Fork 13
Radix dropdown -> Headless dropdown #2452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
dd62709
to
fe32b9b
Compare
fe32b9b
to
4870bd8
Compare
4870bd8
to
ac920b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks cleaner, and, in clicking through the vercel deployment, all seems good.
Still need to fix this. Radix locks scroll when the dropdown is open to prevent this from happening. Headless has a 2024-09-17-dropdown-menu-z-bug.mp4 |
5c5cdd1 seems good: 2024-09-18-z-topBarPopover.mp4 |
oxidecomputer/console@ce242e7...5561f28 * [5561f285](oxidecomputer/console@5561f285) oxidecomputer/console#2455 * [5640bf9f](oxidecomputer/console@5640bf9f) oxidecomputer/console#2454 * [e3d42459](oxidecomputer/console@e3d42459) oxidecomputer/console#2452 * [728f1eb9](oxidecomputer/console@728f1eb9) oxidecomputer/console#2451 * [a7cb26f9](oxidecomputer/console@a7cb26f9) fix type error due to bad xterm import * [7107b5b1](oxidecomputer/console@7107b5b1) remove unused xterm-addon-fit from package.json
oxidecomputer/console@ce242e7...5561f28 * [5561f285](oxidecomputer/console@5561f285) oxidecomputer/console#2455 * [5640bf9f](oxidecomputer/console@5640bf9f) oxidecomputer/console#2454 * [e3d42459](oxidecomputer/console@e3d42459) oxidecomputer/console#2452 * [728f1eb9](oxidecomputer/console@728f1eb9) oxidecomputer/console#2451 * [a7cb26f9](oxidecomputer/console@a7cb26f9) fix type error due to bad xterm import * [7107b5b1](oxidecomputer/console@7107b5b1) remove unused xterm-addon-fit from package.json
Radix has given us a bit of trouble here and there and I'd prefer to be all-in on Headless. While working on #2450, decided to poke at converting our dropdown to use Headless. The goal is to keep the API of our wrapper component roughly the same to minimize the diff. Plus we cut the bundle size a tiny bit (384 kB to 376 kB gzipped). Can't drop
@radix-ui/react-focus-guards
yet because it's still used by the dialog lib.The four spots the dropdown menu is used are:
TopBarPicker
(project/instance/vpc picker in header bar)