From 21f11815b1119b650f187d6f6f2d7433559fe93b Mon Sep 17 00:00:00 2001 From: "Alex P." Date: Tue, 15 Oct 2024 10:48:04 +0300 Subject: [PATCH] Remove darkMode --- modules/ppcp-blocks/resources/js/checkout-block.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-blocks/resources/js/checkout-block.js b/modules/ppcp-blocks/resources/js/checkout-block.js index 0a62e54d8..f92263cbf 100644 --- a/modules/ppcp-blocks/resources/js/checkout-block.js +++ b/modules/ppcp-blocks/resources/js/checkout-block.js @@ -622,7 +622,7 @@ const PayPalComponent = ( { style.borderRadius = buttonAttributes?.borderRadius ? Number( buttonAttributes.borderRadius ) : style.borderRadius; - style.color = buttonAttributes?.darkMode ? 'white' : ''; + style.color = ''; } if ( ! paypalScriptLoaded ) { @@ -725,7 +725,7 @@ const BlockEditorPayPalComponent = ( { fundingSource, buttonAttributes } ) => { borderRadius: buttonAttributes.borderRadius ? Number( buttonAttributes.borderRadius ) : configStyle.borderRadius, - color: buttonAttributes.darkMode ? 'white' : configStyle.color, + color: configStyle.color, }; }