🐛 Fix the Apple Pay button style on front end

This commit is contained in:
Philipp Stracker 2024-10-30 12:39:24 +01:00
parent 40688b706f
commit e4da77ace5
No known key found for this signature in database

View file

@ -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(