#mike taylor - elements
1 messages · Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can 🙂
hey there, have you tried using the backgroundColor?
https://stripe.com/docs/js/appendix/style#style_object-backgroundColor
Yep we tried that as follows, color works on font but backgroundColor isn't? options={{ style: { base: { fontSize: "16px", color: "#424770", '::placeholder': { color: "#aab7c4", }, ':disabled': { backgroundColor: '#e8e8e8', //boxShadow: '0 0 0 1000px #e8e8e8 inset', color: "#9e2146", }, }, invalid: { color: "#9e2146", }, },
Hmm the documentation suggests trying the background of the container element, but that seems like a different background right?
will have a look but yes I think so
The only way I see to do it is to wrap the CardElement in a div and then apply a style there, but seems like a fiddle
Yes I think that's what the documentation is recommending