[wp-trac] [WordPress Trac] #62243: Twenty Twenty Theme: Latest post block there is no space between post-author/post-date and post content on the front-end.
WordPress Trac
noreply at wordpress.org
Mon Nov 11 15:46:44 UTC 2024
#62243: Twenty Twenty Theme: Latest post block there is no space between post-
author/post-date and post content on the front-end.
-------------------------------------------------+-------------------------
Reporter: viralsampat | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: dev-feedback needs-patch needs- | Focuses: css
testing |
-------------------------------------------------+-------------------------
Comment (by sainathpoojary):
Hey @viralsampat,
Thanks for raising this issue! I couldn’t reproduce it on my end.
Here’s what I tested:
- Twenty Twenty theme on WordPress versions 6.7 to 6.4
- Twenty Twenty theme on Local by Flywheel on WordPress 6.6
After checking the style.css file from core/latest-posts, I found this
rule:
{{{
.wp-block-latest-posts__post-excerpt {
margin-top: 0.5em;
margin-bottom: 1em;
}
}}}
This CSS rule adds a top margin, which appears to be adding the gap.
You can view the relevant code here:
[https://github.com/WordPress/gutenberg/blob/249c0cf495ed89df95e039572974bc948fa89731/packages
/block-library/src/latest-posts/style.scss#L60C1-L63C2]
Could you please provide more details or any additional steps needed to
replicate the issue?
Thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62243#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list