#Svatex-elements

1 messages · Page 1 of 1 (latest)

hybrid coral
#

@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

cerulean parcel
#

Iam using styled components, so maybe thats the reason... Anyway className={"form-control"} kind of works, but its still not 100% width :/

hybrid coral
#

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

cerulean parcel
#

And it do not work for CartdElement 😦

#

Sure I will try, anyway thanks for help!

#

Stupid me... Works perfectly! Thanks

hybrid coral
#

great!

cerulean parcel
#

Well actually one more question I found out that there should be possible to change padding in CardElement but it also do not works :?

hybrid coral
#

for the CardElement you would add padding to the containing div

#

not entirely sure how that works with React though