Repository navigation
Conversation
With this commit, '__experimentalExposeControlsToChildren' is set to 'false', so that the gallery's inner blocks don't display settings.
|
Caution: This PR has changes that must be merged to WordPress.com |
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. 🔴 Action required: Please add missing changelog entries for the following projects: Use the Jetpack CLI tool to generate changelog entries by running the following command: Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
| align: [ 'center', 'wide', 'full' ], | ||
| customClassName: false, | ||
| html: false, | ||
| __experimentalExposeControlsToChildren: false, |
There was a problem hiding this comment.
This will only impact mobile, given that inner blocks aren't being used by the web version of the block.
guarani
left a comment
There was a problem hiding this comment.
I tested this by checking out add/tiled-gallery-block in Gutenberg Mobile and checking out this Jetpack branch and WordPress/gutenberg#36371 branch in Gutenberg. Then I changed __experimentalExposeControlsToChildren to __experimentalDisplayChildBlockControls and the inner image blocks didn't display their settings button (as expected).
I'm approving now on the assumption that the above is all that's needed to make this PR ready.
As discussed in WordPress/gutenberg#36371, '__experimentalExposeControlsToChildren' doesn't accurately reflect what we're trying to achieve. Instead, a new block supports, '__experimentalHideChildBlockControls', as been created for accuracy and clarity.
Partial fix for wordpress-mobile/gutenberg-mobile#4190 (note, this PR won't hide the image's caption, only the settings toggle)
Changes proposed in this Pull Request:
__experimentalHideChildBlockControlsis set totrue, so that a settings toggle/control isn't available for each individual image within the main Tiled Gallery block.Jetpack product discussion
p9ugOq-1Tb-p2
Does this pull request change what data or activity we track or use?
No, it doesn't.
Testing instructions:
Prerequisite: The following testing instructions rely on the code in WordPress/gutenberg#36371, which hasn't been merged into Gutenberg's
trunkat the time of writing. Please make sure to check out the branch that the code is on if it's not merged intotrunk.