Site editor: blockGap of template part block is not working
Description
Template part block blockgap is not working in the site editor. blockgap is working on the template part block edit page.
I want blockgap to work.
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:template-part {"slug":"main-singular","tagName":"main"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
Step-by-step reproduction instructions
- Select templates and select singular template on site editor
- Select template part block
- Click on Edit button
Screenshots, screen recording, code snippet
https://user-images.githubusercontent.com/15373114/209264049-ccafb688-02bc-4b08-8066-86937d4d0200.mov
Environment info
WP 6.1.1 Twenty Twenty-Three 1.0 and other theme
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Hi! Layout and design features are not enabled for the template part. If they were enabled, the values would need to be adjusted on every single template part block individually, in every single template. That would defeat the purpose of the block, which is to show the same inner blocks in multiple places.
To use block gap inside a template part, you first need to add a block that supports block gap, for example a group, and then place your other blocks inside of it.
hi.
Thank you for your answer.
To use block gap inside a template part, you first need to add a block that supports block gap, for example a group, and then place your other blocks inside of it.
I understand why its not working, that method solved the problem.
Closing this out based on the above conversation :) Thanks so much for your insights @carolinan. If this needs to be re-opened, just let me know and I will do so.