#55103 closed defect (bug) (fixed)
Twenty Twenty-Two: Restore padding for Group blocks with a background color
Reported by: | kjellr | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 5.9.1 | Priority: | normal |
Severity: | normal | Version: | 6.0 |
Component: | Bundled Theme | Keywords: | has-patch commit fixed-major |
Focuses: | Cc: |
Description
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 (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:
Current:
Change History (8)
This ticket was mentioned in PR #2288 on WordPress/wordpress-develop by kjellr.
3 years ago
#1
- Keywords has-patch added
#3
@
3 years ago
- Owner set to audrasjb
- Resolution set to fixed
- Status changed from new to closed
In 52686:
3 years ago
#4
Committed in https://core.trac.wordpress.org/changeset/52686
#5
@
3 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Restores the padding rule removed in https://github.com/WordPress/wordpress-develop/pull/2281.
---
Site Editor
Before|After
|
Post/Page Editor
Before|After
|
Trac ticket: https://core.trac.wordpress.org/ticket/55103