-
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
Make the zoom out inserters work for sections inside the section root #60909
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: +18 B (0%) Total Size: 1.74 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.
This LGTM and solves the bug, thank you!
I did note that these quick inserter render blocks when in a
|
@richtabor it's a known issue and it will have its own fix. There is a prop that these inserters can get to prioritise patterns but this prop is set internally depending on where the inserter is relative to the root element. The pattern assembler feature needs to update the above behaviour but it's unclear if we should: a) allow the prop to be set from outside |
What?
In zoom out mode there were some inserters appearing between top level blocks and this PR makes them appear back.
Why?
We changed how zoom out finds top level blocks by introducing the concept of section root, and the block inserters were not aware of this, looking always for the root element.
How?
Get the top blocks from the section root, whatever that is.
Testing Instructions
Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A