-
Notifications
You must be signed in to change notification settings - Fork 72
Prevent WooPayments-specific styles in the Checkout block to leak to other payment methods #11085
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
Prevent WooPayments-specific styles in the Checkout block to leak to other payment methods #11085
Conversation
… other payment methods
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: +35 B (0%) Total Size: 873 kB
ℹ️ 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.
Tested and LGTM.
Thanks for the review, @rtio! It's my first time merging a PR in WooPayments, am I right to assume that these changes will be included in WooPayments 10.1? In which case, I should add the testing instructions here, right? And is there something that needs to be done on #11081? (Sorry if that's documented somewhere and I missed it, but I couldn't find what needs to be done besides the merge. 😅 Thanks in advance!) |
@Aljullu - it will be on 10.2.0 PaJDYF-1gY-p2 If this is urgent, we can consider it. May ask here p1760002069118999-slack-CGGCLBN58 |
No, no worries. It was just to know if I need to do something besides merging. |
As @htdat stated, this is expected to be released on 10.2. Thanks for asking. |
Thanks folks! I just merged the PR, I see in the PR template there is a |
Unless it changes an existing flow, you should be good. |
Changes proposed in this Pull Request
WooPayments styles are leaking into other payment methods in the Checkout block. I could notice a conflict with WooCommerce PayPal Payments, but other payment methods might be affected as well. This PR makes the CSS selectors match only the WooPayments method. It doesn't affect the specificity by using a
:where()
selector.This PR has no tests because it's CSS-only.
Testing instructions
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge