-
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: Pass the section root ID to the inserter #61464
Conversation
Size Change: -35 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.
I think this is a good alternative to #61428 as it allows the section root client ID to be used in more places.
Tests well for me 🚢
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. |
a34b09a
to
d1931c1
Compare
Flaky tests detected in d1931c1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8995820888
|
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.
Tested this and it works as it says.
What?
Alternative to #61428. Uses the section root ID as an insertion point for the Sidebar Inserter, instead of the root client id, if it exists, so that blocks and patterns get inserted at the correct location. Part of #61320.
Why?
If no block is selected we should still be able to insert patterns and blocks, just at the end of the page, or at the end of the section root.
How?
Gets the section root ID if it exists and passes into the sidebar inserter.
Testing Instructions
Screenshots or screencast