[wp-trac] [WordPress Trac] #52589: Twenty Twenty-One: Paragraph padding isn’t inherited in some div

WordPress Trac noreply at wordpress.org
Wed Feb 24 08:45:18 UTC 2021


#52589: Twenty Twenty-One: Paragraph padding isn’t inherited in some div
---------------------------+------------------------------
 Reporter:  ooker          |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  5.6.1
 Severity:  major          |  Resolution:
 Keywords:                 |     Focuses:  ui, css
---------------------------+------------------------------

Comment (by poena):

 Hi

 The spacing is applied to immediate children of ''entry content''
 -which is where the blocks are placed, and to immediate children of inner
 blocks.

 When a plugin chooses to add multiple nested elements like 6 separate divs
 with non standard classes,
 the theme does not support that.

 The CSS mentioned in comment 7 is for the editor and it is not used the
 front of the website.
 I thought you wanted the gaps, not remove the gaps?

 The CSS for the spacing in the widgets is here:
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwentyone/assets/sass/03-generic/vertical-
 margins.scss?rev=50410#L134


 ----

 If the goal is to have a block with a background color and paragraphs with
 spacing between them, then you can use WordPress blocks for that, you
 don't need a plugin.

 -If you do the following, is there still no spacing?

 Add a group block to your post.
 Set the group block background color from the block settings sidebar.
 Add your text as ''separate'' paragraph blocks.


 ----

 When I view the website, the indent works.
 But if this is a quote, I recommend you to use a quote block.

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


More information about the wp-trac mailing list