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

CardForm's textColor prop not affecting input text color in @stripe/stripe-react-native #1808

Open
OscarCode9 opened this issue Jan 16, 2025 · 0 comments

Comments

@OscarCode9
Copy link

Describe the bug
The textColor prop in the CardForm component from @stripe/stripe-react-native library is not working properly. The text color does not change when setting the textColor property in the cardStyle object.
To Reproduce
Steps to reproduce the behavior:

Implement a CardForm component from @stripe/stripe-react-native
Set the cardStyle prop with a textColor property
The text color remains unchanged regardless of the value set
<CardForm cardStyle={{ backgroundColor: "#ffffff", textColor: "#ffffff", // This property has no effect placeholderColor: "#ff0000", fontSize: 200, }} // ... rest of the props />
Expected behavior
The text color of the input fields should change according to the textColor value set in cardStyle.
Smartphone

Device: iOS
OS: Latest versions
Version: @stripe/stripe-react-native latest version

Additional context

The other styling properties in cardStyle (like backgroundColor) work correctly
The issue persists regardless of the color format used (hex, rgb, or named colors)

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

No branches or pull requests

1 participant