#deadsalt
1 messages · Page 1 of 1 (latest)
Hi 👋
Do you have an example available at a public URL I can view?
Yup - it can be viewed here: https://7661-101-53-216-196.au.ngrok.io/stimulus/add-funds
You will need to auth to see it though, you can use:
username: dylan
password: password
And then just skip the 2-factor prompt
Unless you meant code, which I can't share publicly but the rule I am using is:
'.Input:autofill': {
'-webkit-text-fill-color': 'red' // For testing
},
Okay thanks for that. I will see if I can get this working. And just so I'm clear, you expect red text when the browser auto-fills any of your inputs?
Yup that’s correct
And this is something you're trying to pass in the Rules , correct? https://stripe.com/docs/elements/appearance-api?platform=web#rules
Yup
I'm trying to test on my end but it's hard to repro
Okay, do you know of Stripe has any working examples of using the ‘:autofill’ pseudo selector as part of the Appearance API rules? Just so I can compare my implementation?
I searched through code on the Stripe GitHub org but couldn’t find anything relating to how the appearance api is actually applied to the PaymentElement.
Yeah I'm not finding anything and I don't have saved payment methods that trigger the :autofill pseudoclass