#tomfree

1 messages ยท Page 1 of 1 (latest)

worthy daggerBOT
dawn stratus
#

Hello ๐Ÿ‘‹
I don't think that text is modifiable unfortunately.

weary tulip
#

Ok. Thanks. To work around it. Can I guess i can disable that it shows for sepa and listen to event that changes /sets the payment method type so that in case of sepa I could show a custom text?

dawn stratus
#

I don't think you can disable the text either ๐Ÿค”
But if you do want to show your own text then yes you can listen to the events on the PaymentElement for this

weary tulip
#

Thanks. You wouldn't happen to know what classes to attach to get the same visual? The rest works nicely But just copying the classes from the original didn't to the job

dawn stratus
#

Not sure what you mean by the classes? Can you elaborate?

weary tulip
#

the css classes to get my text styled like the original

#

make sense?

dawn stratus
#

Ah I see.. hmm, not sure tbh.
Maybe since the PaymentElement renders in an iFrame, its CSS doesn't affect the text outside?

#

Just a hunch

weary tulip
#

good one. Well then i'll test around to identify the colors and size via the options and make sure its' the same

#

tanks mate

#

got it. btw would you raise a suggestion to be able to switch the text between b2c and b2b since conditions differ? Thanks. Have a great day!

dawn stratus
#

Sure, I'll file a feature request for this.