#Svatex-elements
1 messages · Page 1 of 1 (latest)
@cerulean parcel try adding class=field (actually, class="form-control" I think) to the containing div, this happens with bootstrap sometimes
or basically give it the same class as any other HTML form elements on the page
Iam using styled components, so maybe thats the reason... Anyway className={"form-control"} kind of works, but its still not 100% width :/
hard to say without looking directly at the page and its CSS myself! It is 100% width, but it's constrained to the width of the div you mount the Element to, so you need to style that div to have more horizontal room
And it do not work for CartdElement 😦
Sure I will try, anyway thanks for help!
Stupid me... Works perfectly! Thanks
great!
Well actually one more question I found out that there should be possible to change padding in CardElement but it also do not works :?
yeah it only works for the IDEALBankElement (https://stripe.com/docs/js/appendix/style#style_object-padding)
Complete reference documentation for the Stripe JavaScript SDK.
for the CardElement you would add padding to the containing div
so https://jsfiddle.net/muczL2xq/ for instance
not entirely sure how that works with React though