[wp-trac] [WordPress Trac] #56069: Footer Template Parts and Reusable Blocks Have Added Spacing By Default

WordPress Trac noreply at wordpress.org
Fri Jun 24 18:46:03 UTC 2022


#56069: Footer Template Parts and Reusable Blocks Have Added Spacing By Default
-------------------------------+-----------------------------
 Reporter:  daviesmediadesign  |      Owner:  (none)
     Type:  feature request    |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  General            |    Version:  6.0
 Severity:  normal             |   Keywords:
  Focuses:  template           |
-------------------------------+-----------------------------
 I noticed when working with WordPress 6.0 that both Footer Template Parts
 (I have not tested on Header Template Parts) and Reusable Blocks have
 spacing around the block by default. This creates unwanted aesthetics such
 as a thick white line between a block with a color background and the
 footer (when the footer also has a color background).

 In most cases when designing a website people will not want this spacing
 between the blocks.

 This problem is made worse by a misrepresentation of how the Template Part
 will look in the Site Editor - it appears there is NO space when viewing
 the same region in the Site Editor. However, when publishing and viewing
 the live changes on the site, the white line appears.

 The workaround to alleviate the problem is to add custom CSS to set the
 "margin-block-start" to 0 for the block elements in question (.wp-site-
 blocks in the case of the footer template part). However, editing the
 custom CSS in WordPress 6.0 is a whole different problem in itself as one
 must get back to the deprecated Customizer through a series of hidden
 steps to access the "Additional CSS" field and customize the CSS.

 In short, the default setting should be that the "margin-block-start" is
 set to 0 for block elements to remove annoying/unwanted spacing between
 blocks from footer template parts or reusable blocks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56069>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list