-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
What problem does this address?
When designing a query layout, designers might want to give a space between the Post Template (core/post-template) and Pagination (core/query-pagination). This space should not be persistent, because pagination is situational and might not be rendered depending on the query results. Using a Spacer block is imperfect because the space block is still there even when the pagination is not rendered.
A possible workaround is to wrap the Post Template and Pagination block into a Group (core/group) block and give the group a block spacing. This will add space between the Post Template and the Pagination block. It works on the front end, but somehow the block spacing doesn't appear in the editor. Bug?
What is your proposed solution?
Add margin support to the Pagination block, so the space can be added to the Pagination block and not persistent. When the query doesn't render pagination, there is no unneeded extra space after the Post Template block.