[wp-trac] [WordPress Trac] #52589: Twenty Twenty-One: Paragraph padding isn’t inherited in some div
WordPress Trac
noreply at wordpress.org
Thu Feb 25 09:06:07 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 domainsupport):
Replying to [comment:9 poena]:
> I would also strongly advice against adding the "wp-block-template-part"
class.
>
> A template part is a specific block type that will be used in a new
WordPress feature that is being developed and I would not recommend using
it here because additional styling may be added for that class.
Thank you for this. To be clear ... as a block developer ... can you
please confirm what is the recommended method to wrap the block in order
for styles to transcend the block elements? We have been unable to find
any documentation on this.
If a custom block were to generate the following HTML for example ...
{{{
<div class="wp-custom-block-wrapper-class inner-container">
<div class="wp-custom-block-inner-class inner-container">
<h3>Block Title</h3>
<p>Block paragraph.</p>
</div>
<div class="wp-custom-block-inner-class inner-container">
<h3>Another Block Title</h3>
<p>Another Block paragraph.</p>
</div>
</div>
}}}
... would that be the correct class syntax to inherit styles?
Please advise.
Thank you,
Oliver
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52589#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list