Make WordPress Core

Opened 11 months ago

Last modified 8 months ago

#48731 new defect (bug)

Twenty Twenty: Full width group side padding issues

Reported by: collet Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3
Component: Bundled Theme Keywords: needs-testing needs-unit-tests
Focuses: css Cc:


1) Full Width Group with no background-color have no side padding, making the content touch the edges of the screen

Currently, if a Full Width Group has no background-color set, it doesn't have side padding. Therefore the content (heading, list, images...) can touch the edges of the screen depending on the screen size.
A group with no background-color should have the same padding-left and padding-right as a group with background-color so that nested blocks look the same.


The current fixes that add padding for the paragraph and columns blocks should be removed:

.alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) {
    padding-left: 2rem;
    padding-right: 2rem;


.alignfull:not(.has-background) .wp-block-columns {
    padding-left: 2rem;
    padding-right: 2rem;

2) Full Width Group with background color have a side padding of 6rem instead of 4rem

Currently, if a Full Width Group has a background-color set, its side paddings are set to 6rem for screen-sizes larger than 1220px.
It should rather be set to 4rem to match the other elements side padding (site header, site footer, wide blocks are protected from the screen edges by 4rem, full width Cover block has a 4rem side spacing...)


Attachments (1)

48731.diff (490 bytes) - added by sumugh 8 months ago.
Side padding for Full Width Group changed from 6rem to 4rem for screen sizes larger than 1220px

Download all attachments as: .zip

Change History (4)

#1 @ianbelanger
11 months ago

  • Keywords needs-patch added

8 months ago

Side padding for Full Width Group changed from 6rem to 4rem for screen sizes larger than 1220px

#2 @sumugh
8 months ago

  • Keywords needs-testing has-unit-tests added; needs-patch removed

#3 @sumugh
8 months ago

  • Keywords needs-unit-tests added; has-unit-tests removed
Note: See TracTickets for help on using tickets.