[wp-trac] [WordPress Trac] #55103: [Twenty Twenty-Two] Restore padding for Group blocks with a background color
WordPress Trac
noreply at wordpress.org
Mon Feb 7 13:29:30 UTC 2022
#55103: [Twenty Twenty-Two] Restore padding for Group blocks with a background
color
---------------------------+--------------------
Reporter: kjellr | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9.1
Component: Bundled Theme | Version: trunk
Severity: normal | Keywords:
Focuses: |
---------------------------+--------------------
The patch that landed in #54944 removed left/right padding that was
applied to all group blocks that had a background color. This removal was
not necessary to fix the issue posed in the ticket.
Gutenberg provides a random default padding value for Group blocks with a
background
([https://github.com/WordPress/gutenberg/blob/b12e82a53d534eac76550e5d03d513f8458b4cf2/packages
/block-library/src/group/theme.scss#L4 reference]), and the CSS rule that
was removed is meant to sync that up with the default site padding used in
the theme.
Removing this value means that content inside of Group blocks (with
backgrounds) no longer lines up with other site content. You can see this
mismatch if you place two group blocks together, one with a background and
one without. Before, the text used to line up on the same left vertical
axis, but now it does not:
Before:
[[Image(https://cldup.com/fUYpxpDlrp.png)]]
Current:
[[Image(https://cldup.com/QMN9IjKG0M.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55103>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list