Post Content: adding pseudo states + typography breaks block margin #43955
Labels
[Block] Post Content
Affects the Post Content Block
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Bug
An existing feature does not function as intended
Description
Adding a pseudo state + typography config to post content in theme.json breaks the block margin — this specifically happens when
styles.blocks.core/post-content.elements.link.:hover.typography
and any of the following properties are configured:fontWeight
,fontSize
,fontStyle
I found that property is applied correctly, but the block margin breaks. There may be more combinations but that's what I discovered in my testing.
Step-by-step reproduction instructions
Add this CSS to your theme.json.
Or checkout this PR for emptytheme: WordPress/theme-experiments#309
Verify the
margin-block-start
breaks (is not parsed correctly?).Screenshots, screen recording, code snippet
Environment info
trunk
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: