-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix UPE fields erroneously showing black background in some themes. #8404
Conversation
…ng color. - When this function was passed `rgba(0,0,0,0)` it returned black when the color was really transparent. It will now return white in this scenario. - Also updates regex to account for extra spaces in the rgba value
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: +84 B (0%) Total Size: 1.28 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.
Nice! That regex is starting to become less legible - I started interpreting it and stopped, only to decide to start testing it worked instead :D 🚢
Fixes #8381
Changes proposed in this Pull Request
On some themes, the credit card fields from UPE were displaying a black background when they shouldn't have. The UPE appearance is generated on the checkout page and we're trying to make an educated guess as to what the styles of the input fields should be. The reported issue occurred when
rgba(0,0,0,0)
(transparent) was being detected and we turned that intorgb(0,0,0)
(black). We now returnrgb(255,255,255)
in this scenario.I've also made the regex detecting
rgba
a bit more robust.Testing instructions
[woocommerce_checkout]
shortcode and publish the page.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