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

Exploratory PR to allow people to adjust the style of the mounted Stripe Elements fields. #3099

Merged

Conversation

kimcoleman
Copy link
Member

@kimcoleman kimcoleman commented Jul 31, 2024

All Submissions:

Changes proposed in this Pull Request:

People with dark themes have no way to target and style the Stripe elements fields that get added via JS. This PR adds a new filter pmpro_stripe_card_element_style so that custom styles can be added.

Here is an example of using this hook to make the placeholder and field values white. You may still need custom CSS to override core PMPro style variations and how background colors and borders are set.

https://gist.github.com/kimcoleman/ab5282830d18252ec39b9dab124d6e7a

@kimcoleman
Copy link
Member Author

kimcoleman commented Jul 31, 2024

Here are the Stripe docs on these styles:

https://docs.stripe.com/js/appendix/style

@dparker1005 dparker1005 merged commit 4e63393 into strangerstudios:dev Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants