-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Featured image block: remove descendent space #35273
Conversation
Size Change: +13 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a nice simple fix @jffng! This is testing nicely for me, tested with TT1-Blocks, TwentyTwenty, TwentyNineteen, Seedlet, and Maywood themes, using a variety of alignments and with and without the "Link to post" setting set.
Before | After |
---|---|
LGTM! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Description
When the featured image block is rendered, the
figure
container is slightly taller than theimg
it contains. This can cause vertical rhythm issues because margin respects the height of thefigure
.This PR removes that space by setting the line-height on the container to
0
.Screenshots
How has this been tested?
post-template
, so your index.html looks like:Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).