-
Notifications
You must be signed in to change notification settings - Fork 798
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
Remove border CSS from button block #23734
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
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 (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
Tests well.
|
👍 |
bf4a250
to
38f19be
Compare
@oskosk thank you for the review, anything else I need to do to bring this PR in? Looks like there is one failing test that I'm not sure what is about / how to address. |
The codecov/project check is not required, so you should be good to go now! I've added both the "Needs Team Review" and the "Needs Review" labels to your PR, so someone from your team can review it as well as someone from Crew. Once it's been approved, you'll be able to merge and commit your changes to WordPress.com 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.
Nice work @jffng, apologies for the delayed review — I missed the ping while I was AFK.
This is testing nicely for me, sandboxed via https://remotedemo.wordpress.com/about/ — before this PR, hovering over the "Ask me a question" button results in the border changing size, and after this PR, the hover changes the background color but the position / border remains the same 👍
From looking at the code, this looks like a safe change, too — since the Button styles from Gutenberg are loaded, which already include padding settings, etc, and the Jetpack button block uses the same classes as the core block, it looks like we don't need these rules anymore.
LGTM!
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.
LGTM, tests well.
Great news! One last step: head over to your WordPress.com diff, D77955-code, and deploy it. Thank you! |
Hey @jffng! Just wanted to check in about the WordPress.com diff (D77955-code) as I notice it is still open and looks like it needs deploying unless other changes were made elsewhere? The diff itself looks to be a little out of date though now with some failing tests. |
Ah sorry I missed this ping @coder-karen — just rebased the branch and waiting for the tests to pass, once they ✅ I will deploy it. |
Changes proposed in this Pull Request:
👋 👋
#19595 ensures that the CSS for the core button block is enqueued when a button is rendered on the server. That way, the Jetpack button uses core's button styles.
However there is still some "default" button CSS that overrides the core + theme styles:
This PR removes that CSS, allowing themes to provide a default value for button borders, fonts, and padding via theme.json that applies to Jetpack buttons.
Does this pull request change what data or activity we track or use?
No.
Testing instructions: