-
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
Zoom out: restore trash button #66288
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +6 B (0%) Total Size: 1.81 MB
ℹ️ View Unchanged
|
<BlockSettingsMenu clientIds={ blockClientIds } /> | ||
{ ! isZoomOutMode && ( | ||
<BlockSettingsMenu clientIds={ blockClientIds } /> | ||
) } |
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.
Personally I wonder if we should instead keep the blockSettingsMenu and try to figure why the default "trash" button is not visible there instead of forking the experience in zoom-out.
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.
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.
It's probably that all the other buttons should be removed, so that Delete is the only thing left, is which case the more toggle shouldn't be there?
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.
Why would we want to remove "duplicate" for instance?
Also, if we want to remove the dropdown if there's only one button, should this behavior be built-in into the toolbar or specific to zoom-out?
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.
Anyway, I don't mind the current PR but I would like us to remove from special cases and if conditions as much as possible.
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 too am not sure if this is what we want.
In trunk currently we have the block settings icon that has a delete option, but also some other options:
In the 6.7 branch we have nothing, not the trash button nor the block settings button:
In this PR we remove the settings button and replace it with a trash can:
The block settings menu contain items that are a bit weird when zoomed out:
- group affects shuffling, because we lose the category metadata so no more shuffling
- ungroup destroys the pattern and also can result in a completely borked layout
- create pattern is again a weird action when you just added a pattern
- duplicate is useful
- delte is useful
I personally am in favor of removing the settings menu and adding the trash can because zoomed out view is an overview state where drilling through menus removes from the benefit.
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.
Personally I wonder if we should instead keep the blockSettingsMenu and try to figure why the default "trash" button is not visible there instead of forking the experience in zoom-out.
I think it's fine keeping the blockSettingsMenu as well. We do need to tweak the contents when zoomed out thought, to allow copy/duplicate/etc.
@richtabor Ok, closing in favour of #66311 then. |
What?
Fixes #66287.
This button was removed in #66200, and it restored the triple dots "more" menu.
This PR tries to restore the trash button and again remove the "more" menu.
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast