#deadsalt

1 messages · Page 1 of 1 (latest)

weak hingeBOT
valid berry
#

Hi 👋

Do you have an example available at a public URL I can view?

languid smelt
#

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
        },
valid berry
#

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?

languid smelt
#

Yup that’s correct

valid berry
languid smelt
#

Yup

valid berry
#

I'm trying to test on my end but it's hard to repro

languid smelt
#

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.

valid berry
#

Yeah I'm not finding anything and I don't have saved payment methods that trigger the :autofill pseudoclass

languid smelt
#

Ah right, that makes it hard to test. I’ll create an issue on the ‘stripe-us’ repo. Thanks for the help in any case

#

*stripe-js