-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Delete experimental radix-ui based DropdownMenu component #55626
Conversation
Size Change: -22.4 kB (-1%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
c28c14f
to
baf3d7f
Compare
Flaky tests detected in 59ab2c6. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7291850888
|
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.
Do you still want to keep the Radix section in the Contributing Guide?
Otherwise, looks good 👍
DropdownMenuV2: DropdownMenu, | ||
DropdownMenuGroupV2: DropdownMenuGroup, | ||
DropdownMenuItemV2: DropdownMenuItem, | ||
DropdownMenuCheckboxItemV2: DropdownMenuCheckboxItem, | ||
DropdownMenuItemLabelV2: DropdownMenuItemLabel, |
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.
Aside: Not sure if I talked to you about this, but I'm thinking we should switch to dot notation exports (DropdownMenuV2.Group
, etc) for better ergonomics all around. It's really cumbersome with all the unlocking and aliasing.
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.
Yes, I'd like to switch to dot notation too. Maybe call the "parent" component DropdownMenu.Root
too. Let's discuss / address in a separate PR!
Makes sense, opened #57336 |
Requires #55625
What?
Remove the experimental, temporary version of
DropdownMenu
based off Radix UIWhy?
The Radix UI version is being removed in favour of the ariakit-based version (see #50459 for more details)
How?
DropdownMenuV2
radix-ui
as a dependency of the projectDropdownMenuV2Ariakit
component toDropdownMenuV2
(including folder structure).I recommend reviewing commit-by-commit.
Testing Instructions