Comments Block: Add blockGap, layout support, and default padding controls#79477
Draft
dhruvikpatel18 wants to merge 1 commit into
Draft
Comments Block: Add blockGap, layout support, and default padding controls#79477dhruvikpatel18 wants to merge 1 commit into
dhruvikpatel18 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
Closes #71975
Adds
blockGap,layout(inner blocks use content width), and default padding controls to thecore/commentsblock, bringing it to parity withcore/groupas a layout container.Why?
The
core/commentsblock is a container that holds several comment-related inner blocks, but unlikecore/groupit was missing:blockGapsupport, no way to control spacing between inner blockslayoutsupport, no "Inner blocks use content width" optionpadding, padding existed as a support but wasn't enabled by default in the sidebarThis made
core/commentsa second-class container compared tocore/group, limiting layout flexibility for theme authors and site editors.Testing Instructions
blockGap:
4. Under Dimensions, confirm a Block spacing (blockGap) control is now visible and enabled by default.
5. Adjust the value, verify the spacing between inner comment blocks updates accordingly in the editor and on the frontend.
Default padding:
6. Under Dimensions, confirm the Padding control is visible and enabled by default (no need to click the "+" to add it).
7. Set a padding value and verify it applies correctly.
Inner blocks use content width (layout):
8. Under Layout in the sidebar, confirm the "Inner blocks use content width" toggle is present.
9. Enable it, verify inner blocks respect constrained/wide/full-width sizing.
Screenshots or screencast
Screen.Recording.2026-06-24.at.2.33.56.PM.mov