-
Notifications
You must be signed in to change notification settings - Fork 801
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
Sharing buttons style improvements #35354
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
@@ -21,10 +21,17 @@ const SharingButtonEdit = ( { attributes, context } ) => { | |||
className: 'jetpack-sharing-button__list-item', | |||
} ); | |||
|
|||
const defaultIconColor = styleType === 'icon' ? '#fff' : '#000'; | |||
|
|||
const buttonStype = { |
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.
Minor typo, I believe you meant buttonStyle
😃
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.
Eagle eye 🦅
@@ -21,10 +21,17 @@ const SharingButtonEdit = ( { attributes, context } ) => { | |||
className: 'jetpack-sharing-button__list-item', | |||
} ); | |||
|
|||
const defaultIconColor = styleType === 'icon' ? '#fff' : '#000'; |
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.
Nitpicking here, but I'm wondering if we can force the white color for icons in CSS rather than here.
For other block styles, I'd say maybe let's inherit the body color instead of using pure black. Discard my comment if that was already discussed.
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.
Thanks for the suggestion. I was too focused on making it work and didn't think of the obvious.
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.
@monsieur-z Thanks for review. I did refactored a bit to remove empty " ". As per poor contrast, great point, we do have ColorChecker, but it doesn't work with default colors yet. I will create a followup task to cover these as well. |
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.
This tests well for me. I have a few suggestions on the markup output, to simplify things a bit and avoid empty tags, but I think I'll merge this now and open a new PR to offer my changes, so folks can start testing things as soon as possible. :)
@andrii-lysenko Here it is: #35390 Let me know what you think about it. |
Missed the review, but just wanted to say this looks great! |
* add Sharing Buttons color controls * add changelog * fix default colors * fix lint * fix typo * refactor styles * remove unnecessary logic
Fixes #35044
Proposed changes:
Adds color controls to Sharing Buttons block, similar to Social Links in core Gutenberg.
Screen.Recording.2024-01-30.at.2.35.36.PM.mov
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: