Merge pull request #1900 from woocommerce/PCP-2177-uniform-smart-button-display-for-pay-pal-google-pay-and-apple-pay

Uniform Smart Button Display for PayPal, Google Pay, and Apple Pay (2177)
This commit is contained in:
Emili Castells 2023-12-14 09:56:11 +01:00 committed by GitHub
commit ea23d09010
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 251 additions and 104 deletions

View file

@ -1,3 +1,4 @@
@use "../../../ppcp-button/resources/css/mixins/apm-button" as apm-button;
.ppcp-field-hidden {
display: none !important;
@ -15,3 +16,12 @@
padding-left: 20px;
}
}
// Prevents spacing after button group.
.ppcp-button-preview-inner {
line-height: 0;
}
.ppcp-button-apm {
@include apm-button.button;
}

View file

@ -15,9 +15,6 @@ document.addEventListener(
jQuery( '*[data-ppcp-display]' ).each( (index, el) => {
const rules = jQuery(el).data('ppcpDisplay');
// console.log('rules', rules);
for (const rule of rules) {
displayManager.addRule(rule);
}