Fix style in checkout and cs

This commit is contained in:
carmenmaymo 2023-09-12 14:07:09 +02:00
parent da0dcdef89
commit cbdff1588b
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E
4 changed files with 46 additions and 25 deletions

View file

@ -1,4 +1,4 @@
#apple-applepay-container {
#applepay-container {
--apple-pay-button-height: 45px;
--apple-pay-button-min-height: 40px;
--apple-pay-button-width: 100%;
@ -6,7 +6,7 @@
--apple-pay-button-overflow: hidden;
--apple-pay-button-margin:7px 0;
&.ppcp-button-pill {
border-radius: 50px;
--apple-pay-button-border-radius: 50px;
}
&.ppcp-button-minicart {
@ -18,15 +18,35 @@
.woocommerce-checkout {
#applepay-container {
margin-top: 0.5em;
}
#apple-applepay-container {
--apple-pay-button-border-radius: 4px;
--apple-pay-button-height: 45px;
&.ppcp-button-pill {
--apple-pay-button-border-radius: 50px;
}
}
}
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout {
#apple-applepay-container {
--apple-pay-button-margin-top: 0;
.ppcp-has-googlepay-block {
.wp-block-woocommerce-checkout {
#applepay-container {
margin: 0;
height: 40px;
}
}
.wp-block-woocommerce-cart {
#applepay-container {
margin: 0;
height: 40px;
}
/* Workaround for blocks grid */
.wc-block-components-express-payment__event-buttons {
display: block;
li[id*="express-payment-method-ppcp-"] {
padding-bottom: 0;
}
}
}
}

View file

@ -164,7 +164,7 @@ class DataToAppleButtonScripts {
$currency_code,
$total_label
) {
$cart = WC()->cart;
$cart = WC()->cart;
if ( ! $cart ) {
return array();
}

View file

@ -123,23 +123,23 @@ class PropertiesDictionary {
*/
public static function button_types(): array {
return array(
'book' => __( 'Book', 'woocommerce-paypal-payments' ),
'buy' => __( 'Buy', 'woocommerce-paypal-payments' ),
'check-out' => __( 'Checkout', 'woocommerce-paypal-payments' ),
'donate' => __( 'Donate', 'woocommerce-paypal-payments' ),
'order' => __( 'Order', 'woocommerce-paypal-payments' ),
'pay' => __( 'Pay', 'woocommerce-paypal-payments' ),
'plain' => __( 'Plain', 'woocommerce-paypal-payments' ),
'subscribe' => __( 'Book', 'woocommerce-paypal-payments' ),
'add-money' => __( 'Add money', 'woocommerce-paypal-payments' ),
'continue' => __( 'Continue', 'woocommerce-paypal-payments' ),
'book' => __( 'Book', 'woocommerce-paypal-payments' ),
'buy' => __( 'Buy', 'woocommerce-paypal-payments' ),
'check-out' => __( 'Checkout', 'woocommerce-paypal-payments' ),
'donate' => __( 'Donate', 'woocommerce-paypal-payments' ),
'order' => __( 'Order', 'woocommerce-paypal-payments' ),
'pay' => __( 'Pay', 'woocommerce-paypal-payments' ),
'plain' => __( 'Plain', 'woocommerce-paypal-payments' ),
'subscribe' => __( 'Book', 'woocommerce-paypal-payments' ),
'add-money' => __( 'Add money', 'woocommerce-paypal-payments' ),
'continue' => __( 'Continue', 'woocommerce-paypal-payments' ),
'contribute' => __( 'Contribute', 'woocommerce-paypal-payments' ),
'reload' => __( 'Reload', 'woocommerce-paypal-payments' ),
'rent' => __( 'Rent', 'woocommerce-paypal-payments' ),
'setup' => __( 'Setup', 'woocommerce-paypal-payments' ),
'support' => __( 'Support', 'woocommerce-paypal-payments' ),
'tip' => __( 'Tip', 'woocommerce-paypal-payments' ),
'top-up' => __( 'Top up', 'woocommerce-paypal-payments' ),
'reload' => __( 'Reload', 'woocommerce-paypal-payments' ),
'rent' => __( 'Rent', 'woocommerce-paypal-payments' ),
'setup' => __( 'Setup', 'woocommerce-paypal-payments' ),
'support' => __( 'Support', 'woocommerce-paypal-payments' ),
'tip' => __( 'Tip', 'woocommerce-paypal-payments' ),
'top-up' => __( 'Top up', 'woocommerce-paypal-payments' ),
);
}
@ -150,7 +150,7 @@ class PropertiesDictionary {
*/
public static function button_languages(): array {
return array(
'' => __( 'Browser language', 'woocommerce-paypal-payments' ),
'' => __( 'Browser language', 'woocommerce-paypal-payments' ),
'ar-AB' => __( 'Arabic', 'woocommerce-paypal-payments' ),
'ca-ES' => __( 'Catalan', 'woocommerce-paypal-payments' ),
'cs-CZ' => __( 'Czech', 'woocommerce-paypal-payments' ),