-
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
Inserter: Auto-close the inserter unless the zoom out experiment is on. #61856
Conversation
Size Change: +55 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
Flaky tests detected in b1bf7b8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9189199876
|
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. |
And doesn't auto-close when inserting patterns. When zoomed out, it's great. Without zoom out, it's unexpected (as it covers content). |
My brain crashed at "only always" 😆 Remind me again why we completely hide zoom out when opening patterns, instead of just removing the restrictions around section selection etc.? |
The main reasons are:
|
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.
This tests OK for me 🚢 it!
@scruffian I meant: why not just zoom out the canvas without any other changes (when patterns is open). Same as editor mode, but just scaling the canvas. |
…is on (WordPress#61856) Co-authored-by: scruffian <[email protected]> Co-authored-by: draganescu <[email protected]> Co-authored-by: richtabor <[email protected]> Co-authored-by: ellatrix <[email protected]>
…is on (WordPress#61856) Co-authored-by: scruffian <[email protected]> Co-authored-by: draganescu <[email protected]> Co-authored-by: richtabor <[email protected]> Co-authored-by: ellatrix <[email protected]>
What?
This reverts the change in #61004 and hides it behind the experiment flag.
Why?
This is necessary because without zoom out mode on, the pattern selector overlaps the canvas:
The solution to this is to move the pattern categories inside the drill down as proposed in #61518, but this PR has hit some blockers, so for now I suggest we revert the behaviour.
How?
We output different wrappers for the inserter depending on whether the experiment is enabled.
Testing Instructions