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

Stripe Elements couldn't calculate its wow-effects because font-size #1465

Merged
merged 2 commits into from
Sep 6, 2021

Conversation

Gnito
Copy link
Contributor

@Gnito Gnito commented Aug 31, 2021

On small screens, payment card input (rendered by stripe.js) was aligning card number and expiration date on top of each other. Something inside the Stripe Elements seems to calculate widths wrongly if card number is too wide compared to component's overall width.

Fixed by reducing font-size.

Note: originally this code was made for other font - so, the font-size etc. wasn't really tuned for Poppins.

@Gnito Gnito merged commit 12013a0 into master Sep 6, 2021
@Gnito Gnito deleted the fix-stripe-elements-on-small-screens branch September 6, 2021 11:48
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

Successfully merging this pull request may close these issues.

1 participant