[wp-trac] [WordPress Trac] #56218: wp-block-columns no margins or padding in WordPress 6

WordPress Trac noreply at wordpress.org
Thu Aug 4 15:26:17 UTC 2022


#56218: wp-block-columns no margins or padding in WordPress 6
--------------------------+------------------------------
 Reporter:  XyZed         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  css
--------------------------+------------------------------

Comment (by XyZed):

 I managed to find a workaround for this from Github. The solution was to
 add the following to custom CSS -


 {{{
 .wp-block-columns {
   gap: var(--wp--style--block-gap);
 }
 }}}

 It appears that the difference between WordPress 6 and previous versions
 is that it doesn't add any gap between columns if the markup for columns
 isn't enclosed in specific remarks. But this css adds the gap.

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


More information about the wp-trac mailing list