-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Latest posts and latest comments: add spacing support #45110
Conversation
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
Size Change: +225 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
The latest comments block is rendered by the <ServerSideRender
block="core/latest-comments"
attributes={ attributes }
skipBlockSupportAttributes
urlQueryArgs={ { _locale: 'site' } }
/> BeforeAfter |
Thank you, I was able to confirm it and I have updated the PR. |
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.
LGTM 👍
What?
Adds margin and padding support to latest comments and latest posts blocks.
Why?
For consistency.
How?
Testing Instructions
Make sure that your test install has both posts and comments.
(For all the spacing changes, make sure that the active theme supports spacing, for example in theme.json).
Create a new posts or page.
Add a latest posts block and a latest comments block.
Confirm that there is a dimension panel, and that the margin and and padding settings are available but not enabled by default.
Test the margin and padding settings for both blocks, in the editor and front.
Bonus: Nest them inside a group block with "Inner blocks use content width" turned off to fully test left and right margins.
Screenshots or screencast