[WIP] Post Template: Try adding flex layout and block spacing support #48340
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
🚧 🚧 🚧 🚧 This is an experimental WIP PR and currently does not work! 🚧 🚧 🚧 🚧
This PR seeks to explore some of the issues that will need to be resolved in order to support block spacing in the post template block. The longer-term goal is to come up with a fix for #44557
Why?
The Post Template block is a very useful and frequently used block for laying out a list of posts, and it'll likely be very beneficial to have more control over how it's displayed, along with its positioning and spacing.
How?
Try opting the Post Template block into flex layout and opt-in to block spacing
Testing Instructions
TBC
Tasks
1.25em
gap value, and allow themes / editors to override this value without breaking anything?Testing Instructions for Keyboard
Screenshots or screencast
It's pretty broken, but it's a start: