-
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
Improve Styles for Social Icons list placeholders #56887
base: trunk
Are you sure you want to change the base?
Improve Styles for Social Icons list placeholders #56887
Conversation
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @colinduwe! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
Can you provide a before/after image so it's clear we're looking at the right thing? Thanks. |
I'll also note that because the placeholders are actually contained within a single list item in the social icons list container they do not respond to the block spacing controls. Let me know if you'd like me to pursue that as well. |
Thanks for your contribution! It would be great if you can fix that too 💪 |
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @apeatling. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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. |
0c6f071
to
b4ccfd8
Compare
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 tested and works as expected.
Updated with last trunk. It would be great to have a second pair of eyes though.
b4ccfd8
to
e405e37
Compare
I've been comparing with Sorry for the trouble! 😅 |
I just opened https://playground.wordpress.net/ and tested 6.6 and 6.7-beta-2 and Gutenberg 19.4.0 and the placeholder is unchanged. If I look at the edit.js file for this block here gutenberg/packages/block-library/src/social-links/edit.js Lines 92 to 100 in 26e108d
it looks unchanged. |
It looks unchanged, but I see that still, styles are working fine (background colors, icon colors and padding). |
To clarify, in all my screenshots at the start of the discussions I've shown 2 social links blocks, one above the other, both configured with the same style settings. The top social links block in each screenshot is empty. The bottom social links block in that same screenshot is configured with 3 social link blocks (twitter, fb, insta). |
What?
Improves the appearance of the placeholders shown on the Social Icons list block.
Why?
#55296
The squares for the placeholders don't completely represent how the block will look once a user add actual social icons to the container block.
How?
A few minor style updates.
Testing Instructions
Insert a new Social Icons block. Remove focus from the block and observe that the placeholders have the correct gap between them.
You can also apply the the logos only and pill shape block style variations and the placeholders will appare the same size and shape as actual inner blocks.
Note that setting the icon color will not change the colors of the placeholders.
Testing Instructions for Keyboard
Screenshots or screencast