-
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
Zoomed Out View: Don't close the inserter #61004
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: -5 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
This will affect every editing mode, not only the Zoomed-out. It also changes the Inserter's already established/expected behavior, so it would be nice to get more general feedback. cc @WordPress/gutenberg-core |
I have a similar PR that preserves the Escape keypress to close the sidebar. Maybe we can remove the Escape keypress though to close the inserter though since it would be a persistent sidebar. #60391 |
Let's also add the X button to the now-persistent sidebar. To make room, we can move the search field to be the first element within each tab section. |
Zoom out should be engaged when a category is selected, as it is in the site editor; it's just not updated to the same behavior in the post editor yet. |
But the media tab also has a second panel. |
Yes, I'd suggest the same behavior for the media's categories as well. |
@scruffian I made an attempt to move the search inside the block and pattern tabs and also make it contextual to the block/pattern tab. The code is definitely not in a good place, but it does allow us to play around with the feel of it. Feel free to revert to keep going with it. |
Just a quick echo that this path also feels very valid from a quick check. |
@scruffian Do you have that screenshot? |
cb4cc71
to
555aee9
Compare
555aee9
to
5b078d2
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.
🚢
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.
Let's give this a try.
Noting that to my understanding this PR introduced two regressions that are now addressed by #61467 |
What?
Make the inserter not a dialog anymore so that it doesn't close when we focus outside of it.
Why?
The other sidebar panels don't operate as dialogs, so this brings consistency with them
How?
Just remove the
useDialog
hook from the component.Testing Instructions
Screenshots or screencast
Apr-23-2024.15-53-36.mp4