[wp-trac] [WordPress Trac] #60196: Twenty Twenty-One: List Item blocks have extra margin in editor

WordPress Trac noreply at wordpress.org
Tue Jul 1 19:21:31 UTC 2025


#60196: Twenty Twenty-One: List Item blocks have extra margin in editor
-------------------------------------------------+-------------------------
 Reporter:  nidhidhandhukiya                     |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.9
Component:  Bundled Theme                        |     Version:  6.1
 Severity:  minor                                |  Resolution:
 Keywords:  has-test-info has-patch changes-     |     Focuses:  css
  requested                                      |
-------------------------------------------------+-------------------------
Changes (by sabernhardt):

 * keywords:  has-test-info has-patch => has-test-info has-patch changes-
     requested


Comment:

 Your PR 8895 replaced the existing `[data-block]` with `[data-
 block]:where(:not(.wp-block-list-item))`, which was **better** than
 setting all margins to zero.

 For my sites, I tend to add bottom //padding// to `li` elements in the
 content area, but it would be good to honor similar custom styles for
 anyone who uses margin instead.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60196#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list