-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 and Image blocks: remove descendent space #35466
Conversation
Size Change: +57 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
hi, @jasmussen thanks for having a look! To be honest I'm not sure what is the best solution here. I'm reading more about the origin of the problem here and it recommends using I could only thing of this maybe affecting the gallery block but it seems like there the fix is doing nothing because the gallery is already using flexbox (using anything except inline/inline-block would solve the issue). It looks the same with or without the fix: What I've seen is that we can't make the line height solution on the image block cause it messes up the caption:
|
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.
Excellent sleuthing work. This definitely seems to be the better solution over both line-height and display: block. This solution worked well in my testing. Let's try this, especially as it's so easy to follow up.
Thanks Joen, I'll bring this in then! |
Description
This is an alternative to #35273 while also applying it to the Image block, who also has that unwanted space between figure and image tags.
How has this been tested?
Insert the blocks on emptytheme, check that there's no space between the figure tag and the image tags.
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).