-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Widget editor: Add toolbar button to move between widget areas #30826
Widget editor: Add toolbar button to move between widget areas #30826
Conversation
Size Change: +33 kB (+2%) Total Size: 1.46 MB
ℹ️ View Unchanged
|
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.
I tested this locally with great results. The code is all right as well 👍
Nice work.
Yes what other code is duplicated between |
It might be an option to move the legacy widget block out of the block library. At a quick glance I don't think there's much else. Maybe we should avoid introducing this package too soon. |
Hey I just noticed the icon which reminds me of a "slalom slope" look a like icon in the toolbar. Hovering and clicking showed me that it is the "Move to Widget area" icon. I did a quick search online and came across this icon: https://cdn4.iconfinder.com/data/icons/proglyphs-computers-and-development/512/Move-512.png |
cc. @critterverse for thoughts on the icon. |
Hey all, I'm questioning whether this should be treated as a primary action that lives in the toolbar. What if it goes into the ellipses menu with other secondary actions? In this case, we could treat the widget area selection as a modal (vs. how it currently appears as a popover from the toolbar): I think this could help because we've got a lot of different arrow-based icons which starts to get confusing, and "move to widget area" is a tricky thing to communicate clearly in icon format. |
Nice. I think the text based option is the clearest way to go. |
I went ahead and added this new issue: (As we need to move the discussion out of the merged PR.) |
Description
Progresses #27409.
Implements a toolbar button for all (non-widget area) blocks to allow them to switch between widget areas.
Some notes on the implementation:
How has this been tested?
Added an e2e test
Manual testing
Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist:
*.native.js
files for terms that need renaming or removal).