-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Section block multi-selection: disable transforms and inspector controls #71708
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
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: +57 B (0%) Total Size: 1.95 MB
ℹ️ View Unchanged
|
tellthemachines
left a comment
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.
Change LGTM! Testing as expected.
andrewserong
left a comment
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 is testing well for me, too! Didn't run into any issues 👍
|
E2E test fails seem related. Will look into it tomorrow. |
…r multiple selected blocks and updating section block checks.
…lected blocks by utilizing `getSelectedBlockClientIds`.
…irectly, simplifying the logic for identifying section blocks in the selection.
f0aa494 to
5bd9f06
Compare
…to improve handling of multiple selected blocks, ensuring accurate identification of section blocks in selection.
Oversight on my part - the Should be fixed now. No other changes to functionality. If the tests pass I'll 🚢 |
|
Flaky tests detected in 8a109fb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/17817433708
|
What?
Fixes #71709
Part of #71517
Context: #71512 (comment)
This PR disables transforms and inspector controls when one or more or all blocks in multi-selection are "section blocks".
Why?
As part of #71517, a "section block" — for example patterns or template parts — is displayed in content only mode.
Content only mode describes an editing mode in which the inner block tree of section blocks are filtered to only display common content blocks, and with limited editing in the toolbar and inspector sidebar.
The different toolbar and inspector states of section blocks make them incompatible with regular blocks.
The idea is to make things more consistent with other "incompatible" multi-block combinations - in these cases
nblocks is displayed only in the sidebar.How?
Checking for section blocks in the
getSelectedBlockClientIds()return value (Array).Testing Instructions
Switch on the patterns + content only experiment:
Screenshots or screencast
Before
Kapture.2025-09-17.at.14.12.04.mp4
After
Kapture.2025-09-17.at.13.53.44.mp4