#curtis_58573
1 messages · Page 1 of 1 (latest)
Hmm...can you give me more specifics? What kinds of things are you hoping to tweak that aren't well supported right now?
- I want to style based on the :focus pseudo selector
- I want to be able to have formulaic values for font size: e.g. max(1rem, 18px)
as a few examples
Got it - and which elements specifically are you working with? Payment Element? or somethign older like card element?
cardNumber, cardExpiry, and cardCvC elements
Ah that's a shame - if you were using PaymentElement you could use the Appearance API and have a lot more control over this
Maybe I can use the payments element. All I want are those three pieces (I don't want the other payment methods as I have those in a separate flow of my checkout). Can I wittle down the PaymentElement to just be a card element?
Yup, with PaymentElement you can specify which payment method types you want enabled (https://stripe.com/docs/js/elements_object/create_without_intent?type=card#stripe_elements_no_intent-options-paymentMethodTypes) and you can set it to just have card
I'd also take a look at this doc on our appearance API (https://stripe.com/docs/elements/appearance-api) before making the switch to see if it has everything you need
ok, thanks! it feels like overkill, but maybe it will work. I will read though those resources. Thanks for posting the links
👍