[wp-trac] [WordPress Trac] #60196: Twenty Twenty-One: List Item blocks have extra margin in editor (was: Twenty Twenty One :- List block having issue with spacing in editor side.)

WordPress Trac noreply at wordpress.org
Wed Jan 17 22:37:35 UTC 2024


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

 * keywords:   => has-patch changes-requested
 * focuses:   => css
 * version:  6.4.2 => 6.1


Comment:

 The inner blocks (List Item) added in 6.1 get the default top and bottom
 margin.

 Twenty Twenty-One uses SASS, so the edits belong in
 `assets/sass/05-blocks/list/_editor.scss`, which then would be compiled to
 the CSS files.

 The [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwentyone/assets/sass/05-blocks/navigation/_editor.scss?rev=55101#L1
 Navigation styles] use `revert` and
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwentyone/assets/sass/05-blocks/social-
 icons/_editor.scss?rev=55101#L1 Social Icons styles] set only the top and
 bottom margins to zero in the editor.

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


More information about the wp-trac mailing list