[wp-trac] [WordPress Trac] #63530: Twenty Twenty-Four: Increase padding for List block (when it has a border or background) (was: List Block Overlapping Issue in Twenty Twenty-Four Theme)
WordPress Trac
noreply at wordpress.org
Wed Jun 4 20:17:09 UTC 2025
#63530: Twenty Twenty-Four: Increase padding for List block (when it has a border
or background)
-------------------------------------+------------------------------
Reporter: viralsampat | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: needs-patch 2nd-opinion | Focuses: css
-------------------------------------+------------------------------
Changes (by sabernhardt):
* keywords: 2nd-opinion dev-feedback needs-testing => needs-patch 2nd-
opinion
* type: defect (bug) => enhancement
* focuses: ui, css => css
* component: General => Bundled Theme
Comment:
[https://github.com/WordPress/twentytwentyfour/pull/348/files PR 348]
intentionally reduced the padding for a List block from `--wp--preset--
spacing--70` to `--wp--preset--spacing--10` (`1rem`) "so the list items
align nicely with the heading." With the small value, the bullets of an
unordered list align with surrounding content better than the numbers of
an ordered list would, especially when the numbers have multiple digits
and/or the list has its own border or background. **Maybe** the theme
could increase padding slightly for //any// List block, using the `--wp--
preset--spacing--20` value.
However, users can insert a List block inside a Group block and then
assign the exact padding, border, and/or background color they desire on
the Group instead. The theme does not need to //correct// the List block
padding, and people who already use the theme could prefer to keep the
existing `--wp--preset--spacing--10` value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63530#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list