File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ export function getPayPalConfig(): FundingSourceConfig {
33
33
BUTTON_COLOR . SILVER ,
34
34
BUTTON_COLOR . BLACK ,
35
35
BUTTON_COLOR . WHITE ,
36
+ BUTTON_COLOR . DEFAULT_BLUE_LIGHT_BLUE ,
37
+ BUTTON_COLOR . DEFAULT_BLUE_DARK_BLUE ,
36
38
] ,
37
39
38
40
logoColors : {
Original file line number Diff line number Diff line change @@ -648,7 +648,8 @@ export function normalizeButtonStyle(
648
648
}
649
649
650
650
props = props || getDefaultButtonPropsInput ( ) ;
651
- const { fundingSource } = props ;
651
+ const { fundingSource, experiment } = props ;
652
+ const { isPaypalRebrandEnabled, defaultBlueButtonColor } = experiment ;
652
653
653
654
const FUNDING_CONFIG = getFundingConfig ( ) ;
654
655
const fundingConfig =
@@ -677,6 +678,12 @@ export function normalizeButtonStyle(
677
678
borderRadius,
678
679
} = style ;
679
680
681
+ const isColorUnset = color === "" || color === undefined ;
682
+
683
+ if ( isPaypalRebrandEnabled && isColorUnset ) {
684
+ color = defaultBlueButtonColor ;
685
+ }
686
+
680
687
// $FlowFixMe
681
688
if ( tagline === "false" ) {
682
689
// $FlowFixMe
You can’t perform that action at this time.
0 commit comments