-
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
Social Links: Fix block appender size #65769
Conversation
Note: This issue does not occur in WP 6.7 so no backport is needed. |
a226c94
to
ad71627
Compare
&.has-small-icon-size .block-editor-button-block-appender.components-button.components-button { | ||
.block-editor-button-block-appender { |
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.
From what I've tested, it doesn't seem like we need to increase the CSS specificity too much.
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. |
Size Change: -126 B (-0.01%) Total Size: 1.77 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.
Much better than what is on trunk and is testing well for me!
ad71627
to
54bdaad
Compare
Rebased and force pushed. There was a failing playwright test that I also had on one of my PRs, and it wouldn't pass until I rebased :) |
Thanks for the review! |
Thanks for this PR 👍👍 |
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jeryj <jeryj@git.wordpress.org>
This reverts commit 3829579.
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jeryj <jeryj@git.wordpress.org>
Fixes #65766
Related to #64877
What?
This PR fixes two issues with the social link block:
Why?
#65225 applied a new 40px default size to inserter buttons. This makes the component's CSS specificity higher and overrides
height:auto
:How?
Instead of relying on padding to determine the size of the button, I give the inserter button an explicit width and height in em units. This ensures that the inserter will always be the same size as the icon, even if a custom size is needed in the future:
b8dfd482fc5c1153db2a2809184fcfb6.mp4
Testing Instructions