-
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
Migrate DropdownMenu instances to Menu #61094
Comments
I've mocked up the menus in Figma based on the existing DropdownMenu V2 component. Here's a sample (current menus are on the left): Generally I think the migration should be quite smooth, but some questions arose out of this exercise:
Also worth noting: Transforms and Toolspanel will need further investigation as these are more involved menus. |
cc @ciampo who's been working on |
Hey @jameskoster 👋 it's good to be back!
We discussed this aspect a few months ago and concluded that radio items shouldn't show an icon. Have there been any significant pushbacks on this decision or any other reasons why we are reconsidering it?
Are you proposing that the component automatically adds the ellipsis to the menu item label when it is a sub-menu trigger? Although in the screenshot above, "Rename..." and "Duplicate..." are probably triggering a modal dialog rather than a submenu. IMO, whether to add the ellipsis to the menu item label or not shouldn't be a responsibility of the
I think we need them unless we want to make an explicit design decision and move away from them. Group headings would be easy to implement, in case.
I think that the current implementation is already quite solid — unless there are big aspects that need change, I think that the best way forward is to continue to work on replacing existing v1 usages with v2, which should help us uncover any major bugs / missing features and should therefore also inform any design tweaks. In January, before I took some extended leave, I started refactoring the "More" dropdown in the block toolbar, which is one of the most complex use cases and should give us a good taste for the rest of the migration. I plan on resuming that work soon |
That is my opinion too. Let's see if we can get away with using regular menu items (instead of radio) for those instances, which would avoid the issue altogether.
Thank you for clarifying! Personally, I still think that adding ellipses should not be a responsibility of Although I agree that it's still a separate conversation, so let's resume it if and when necessary.
That shouldn't be a problem. |
Menu (formerly 'DropdownMenu V2') includes several benefits like support for flyout menus, improved accessibility, and consistent treatment of checkbox/radio groups. It would be good to migrate instances of
DropdownMenu
to the new component to make use of those benefits, and visually align menus across.Editor
Admin
Many of these menus can be replicated 1:1 with the new component, so hopefully a lot of the work will be straight-forward. Some will however require some design attention. As time allows let's mock these up in Figma here.
Some initial exploration around this took place in #57996.
The text was updated successfully, but these errors were encountered: