-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button customization and state param #2
Conversation
src/constants/button.js
Outdated
@@ -4,8 +4,15 @@ export const BUTTON_LABEL = { | |||
CONNECT: ('connect' : 'connect') | |||
}; | |||
|
|||
export const BUTTON_FUNDING_TYPE = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use FUNDING
from @paypal/sdk-constants/src
BLUE: ('blue' : 'blue') | ||
GOLD: ('gold' : 'gold'), | ||
BLUE: ('blue' : 'blue'), | ||
DARKBLUE: ('darkblue' : 'darkblue') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make sure that:
- Gold and blue are only usable by paypal button
- Dark blue is only usable by credit button
To make sure we're aligning with brand
test/screenshot/config.js
Outdated
...DEFAULT_OAUTH_PROPS | ||
...DEFAULT_OAUTH_PROPS, | ||
style: { | ||
...(fundingSource === FUNDING.CREDIT ? { color: BUTTON_COLOR.DARKBLUE } : {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should default to darkblue if the funding source is credit, without the merchant needing to pass it explicitly.
289bba7
to
e144bea
Compare
Change list