mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
🐛 Fix the Apple Pay button style on front end
This commit is contained in:
parent
40688b706f
commit
e4da77ace5
1 changed files with 9 additions and 4 deletions
|
@ -109,10 +109,15 @@ class ApplePayButton extends PaymentButton {
|
|||
* @inheritDoc
|
||||
*/
|
||||
static getStyles( buttonConfig, ppcpConfig ) {
|
||||
return combineStyles(
|
||||
ppcpConfig?.button || {},
|
||||
buttonConfig?.button || {}
|
||||
);
|
||||
const { color, lang, type } = buttonConfig?.button || {};
|
||||
const buttonStyle = { color, lang, type };
|
||||
|
||||
const buttonStyles = {
|
||||
style: buttonStyle,
|
||||
mini_cart_style: buttonStyle,
|
||||
};
|
||||
|
||||
return combineStyles( ppcpConfig?.button || {}, buttonStyles );
|
||||
}
|
||||
|
||||
constructor(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue