[wp-meta] [Making WordPress.org] #5469: Padding on group blocks

Making WordPress.org noreply at wordpress.org
Wed Oct 28 22:22:40 UTC 2020


#5469: Padding on group blocks
---------------------------------------+---------------------
 Reporter:  jdy68                      |       Owner:  (none)
     Type:  enhancement                |      Status:  new
 Priority:  normal                     |   Milestone:
Component:  Make (Get Involved) / P2   |  Resolution:
 Keywords:  has-patch has-screenshots  |
---------------------------------------+---------------------

Comment (by coffee2code):

 @audrasjb: Any reason we shouldn't instead do something like:

 {{{
 .wp-block-group.has-background {
   padding: 1.25em 2.375em;
 }
 }}}

 Not having followed the matter closely, it appears as though this is an
 oversight in Gutenberg. The
 [https://github.com/WordPress/WordPress/blob/master/wp-includes/css/dist
 /block-library/style.css core CSS file] that defines padding for blocks
 that have a background color (search for `.has-background`) omits defining
 the padding for a block group with a background color.

 The `p` just before this block in the example URL provided in #comment:2
 has padding applied in this way. The CSS file defines the above padding
 for `h1`-`h6`, `ol`, `li`, `p`. and block columns.

 Seems to look as desired on my end when I do it this way.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5469#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list