-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Fix: Extra top and bottom margin issue in Social Link block for classic theme below twenty twenty #69100
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
Fix: Extra top and bottom margin issue in Social Link block for classic theme below twenty twenty #69100
Conversation
…rgin coming from classic.css file
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
@carolinan, @luminuu, do you think this needs to be fixed on the theme side? Fixing every theme conflict doesn't seem maintainable long-term, but I would defer to your expertise. |
It is possible that it is a theme issue, like with the pull quote issue, it needs testing first. |
From what I've researched, it looks like this issue needs to be addressed in the social icons block itself. See #69098 (comment). |
Yes @t-hamano, so adding the |
I think this is for accessibility reasons, see #64883. So it looks like we can't put the |
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.
I would like to accept this PR, but would be grateful for any additional feedback if this issue needs to be addressed theme-side.
@t-hamano For whatever reason, this CSS does come from core, that adds a The issue persists also over any default classic theme that is not a block theme, with one exception: I've also checked some more older themes and this issue happens to all of them. The only exception is Twenty Twenty-One, which has some CSS added for the editor styles to fix this problem: I think the suggested fix in this PR is at the right spot, as this CSS gets loaded after the one from the first screenshot, so it would always overwrite this original setting done in the |
Thanks everyone for the feedback. It seems like this issue is best resolved in the block itself, so let's merge this PR. |
…rgin coming from classic.css file (WordPress#69100) Co-authored-by: singhakanshu00 <akanshusingh@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: shail-mehta <shailu25@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: luminuu <luminuu@git.wordpress.org> Co-authored-by: viralsampat-multidots <mdviralsampat@git.wordpress.org>
…rgin coming from classic.css file (WordPress#69100) Co-authored-by: singhakanshu00 <akanshusingh@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: shail-mehta <shailu25@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: luminuu <luminuu@git.wordpress.org> Co-authored-by: viralsampat-multidots <mdviralsampat@git.wordpress.org>
What?
fixes #69098
Why?
How?
margin: 0
to editor styles for Social Link Block.Testing Instructions
Screenshots or screencast
Before:

After:
