stripe / react-stripe-js

React components for Stripe.js and Stripe Elements
https://stripe.com/docs/stripe-js/react
MIT License
1.7k stars 259 forks source link

StripeCardElementOptions - add disabled property to classes #492

Closed landsman closed 2 months ago

landsman commented 3 months ago

What happened?

Please add a new property disabled to StripeElementClasses to let me change styles when I change StripeCardElementOptions to disabled = true.

Or propagate this disabled state as data attribute within a existing className (base, complete, ...)

Currently, it's not possible to style such a input eg. wrapper background with card input fields.

Environment

https://docs.stripe.com/js/elements_object/create_element?type=card#elements_create-options-disabled

Reproduction

See the example on screenshot:

Screenshot 2024-04-12 at 13 57 14

I can change the background only for the fields, but not for the whole wrapper as you can see on Email input.

awalker-stripe commented 2 months ago

Hello! Thank you for the screenshots and information – I see where you're trying to do some customization based on when the Element is disabled. Unfortunately, we aren't really equipped to truly dive into your integration here on Github. Could you reach out to Stripe Support for help? This will allow us to better dive into your particular integration and see if there's an option that can work.

landsman commented 2 months ago

Unfortunately, we aren't really equipped to truly dive into your integration here on Github

It's a general thing. Nothing specific to my integration.

landsman commented 1 month ago

@awalker-stripe can you please resolve it here?

fruchtose-stripe commented 1 month ago

Hi @landsman. This looks like an integration question, and we aren’t able to answer those here on GitHub. Please reach out to Stripe Support for help.

landsman commented 1 month ago

@fruchtose-stripe can you just move this "feature request" to product team? It's a general thing.

fruchtose-stripe commented 1 month ago

Hi @landsman. I have flagged this issue internally. In the meantime, you may want to connect with Stripe Support for assistance with your integration.

landsman commented 1 month ago

Thank you. I don't need the assistance. I need support in JS SDK for this thing, that's all :)