Skip to content
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

iOS Dark Mode + 3DSecure popup: footer color too dark #248

Closed
benomatis opened this issue May 20, 2021 · 6 comments
Closed

iOS Dark Mode + 3DSecure popup: footer color too dark #248

benomatis opened this issue May 20, 2021 · 6 comments

Comments

@benomatis
Copy link
Collaborator

benomatis commented May 20, 2021

I use dark mode on my phone (iPhone 11 with iOS 14.5.1), and it appears to make the bottom gray part of the 3DSecure popup (with Learn more... and Need help) to be really dark, like if there was an overlay on top of it, but it's not, if I tap the section titles, they open fine, it's just very dark. Any way that could be overriden? Interestingly the very top gray line, just above the popup, remains the same gray, which I believe is a darkened / overlayed white, but it doesn't change color as I switch between light and dark modes (Settings > Display & Brightness > APPEARANCE section: Light / Dark) only the footer background does.

@thorsten-stripe
Copy link
Contributor

@davidme-stripe can you help look into this?

@thorsten-stripe
Copy link
Contributor

@yuki-stripe can you help look into this?

@yuki-stripe
Copy link
Collaborator

@benomatis It looks like some of the 3DS2 UI is being customized e.g., the color of the navigation bar and button, the text color, etc. Can you describe how you're doing that?

@benomatis
Copy link
Collaborator Author

@yuki-stripe This is my threeDSecureParams object for StripeProvider, if that's what you're after

{
  timeout: 5,
  backgroundColor: '#FFFFFF', // iOS only
  navigationBar: {
    translucent: false,
    backgroundColor: themeColors.brandBlue,
    barTintColor: themeColors.brandBlue,
    headerText: 'Complete card authentication',
    textColor: '#FFFFFF',
    textFontSize: 20
  },
  label: {
    headingTextColor: themeColors.brandBlue,
    headingFontSize: 20
  },
  submitButton: {
    backgroundColor: themeColors.brandBlue,
    borderRadius: 0,
    textColor: '#FFFFFF',
    textFontSize: 14
  },
  cancelButton: /* same as above */,
  continueButton: /* same as above */,
  nextButton: /* same as above */,
  resendButton: /* same as above */,
  footer: {
    headingTextColor: '#000000',
    chevronColor: '#000000',
    textColor: '#000000'
  }
}

@arekkubaczkowski
Copy link
Collaborator

@benomatis you can set background color of footer to override the bottom part:

 footer: {
    headingTextColor: '#000000',
    chevronColor: '#000000',
    textColor: '#000000',
    backgroundColor: '#000000' <--- add this line
  }

@benomatis
Copy link
Collaborator Author

@arekkubaczkowski I can confirm this solved my problem. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants