#Hollywood2520-web-elements
1 messages · Page 1 of 1 (latest)
I believe so. I used this to guide me. https://stripe.com/docs/payments/accept-a-payment?ui=elements
are you able to reproduce on https://stripe.dev/elements-examples/ ?
I could not reproduce the error
it seems that whenever it is trying to focus on the next field, it zooms in
I can show you the error if you wish
yeah so it might be something with your integration, possibly with how your styles / accessibility stuff is set up?
what browser are you able to reproduce with on your end?
I used both mobile Safari and mobile Chrome (iOS) on the Stripe examples^ link and wasn't able to reproduce
Thing is that I copied and pasted the javascript
I've only tested on google pixel 6 pro chrome browser
I could try on an iphone to see
it looks fine on the iphone
does Chrome on Pixel do the same on the Stripe examples too?
no
on the examples, it works just fine, on the same phone, it is not working fine.
on my website
mind sharing your code for how you're instantiating CardElement and what style you're setting up for it?
sure, what would you like to see?
well first, are you creating CardElement with a style?
ok spoke to a really awesome coworker who explained what is happening here, they've explained it to a few users
basically when the calculated font size falls under a particular threshold, certain browser implementations do the "zoom" automatically to help users read clearly.
There are ways to accommodate and handle this - a couple suggestions laid out in https://stackoverflow.com/questions/7073396/disable-zoom-on-input-focus-in-android-webpage
OR
https://stackoverflow.com/questions/2989263/disable-auto-zoom-in-input-text-tag-safari-on-iphone?noredirect=1&lq=1
recommend giving those a shot and seeing what works fo ryou
Okay, great! I'll look into it and I'll get back to you! thanks!
np!
Btw, best dev support system.
I actually get to talk to another developer not someone who I have to explain what their own system does.
Especially cause I don;t know how it works!
that is why we're here! glad to help and collaborate!