We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a77ecd7 commit a20a516Copy full SHA for a20a516
src/ui/buttons/props.js
@@ -678,11 +678,12 @@ export function normalizeButtonStyle(
678
borderRadius,
679
} = style;
680
681
- const isColorUnset = color === "" || color === undefined;
682
-
683
// This sets the button color so it gets passed to the query string parameter style.color to scnw
684
- if (isPaypalRebrandEnabled && isColorUnset) {
685
- color = defaultBlueButtonColor;
+ if (isPaypalRebrandEnabled) {
+ const shouldRenderButtonColorControl = defaultBlueButtonColor === "gold";
+ const experimentButtonColor = defaultBlueButtonColor || "gold";
+
686
+ color = shouldRenderButtonColorControl ? color : experimentButtonColor;
687
}
688
689
// $FlowFixMe
0 commit comments