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

WordPress Trac noreply at wordpress.org
Wed Jun 4 20:31:38 UTC 2025


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

Comment (by rishabhwp):

 Replying to [comment:6 sabernhardt]:
 > @rishabhwp The patch should include changes to the `.scss` files and
 then compile those to the CSS files.
 >
 > If you use the `revert` method, as [55101] did for the Navigation block,
 the List block ruleset would belong in
 `assets\sass\05-blocks\list\_editor.scss`.
 >
 > Another option is to edit the selector in
 `assets\sass\05-blocks\utilities\_editor.scss` from `[data-block]` to
 `[data-block]:where(:not(.wp-block-list-item))`. Then it would honor a
 custom style like `li {margin-bottom: 0.25em;}` in Additional CSS, and the
 specificity level would remain the same.

 Thanks for the guidance! I've updated my PR accordingly and committed the
 changes. Please let me know if anything else needs adjustment.

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


More information about the wp-trac mailing list