#michael_19345

1 messages · Page 1 of 1 (latest)

paper relicBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

uneven wadi
#

hi there!

#

what are the values of textColor and secondaryFontFamily?

#

and do you see an error message in the browser console?

glad pine
#

textColor: "#000000"

#

secondaryFontFamily: "'ITC Kabel W01 Book', 'Open Sans', 'sans-serif'"

#

no console errors re this

#

could it be that the font family is not actually available within this component?

uneven wadi
glad pine
#

should this be passed in as options here? elements.create()

uneven wadi
#

no, in stripe.element(...)

glad pine
#

so here then right?

this.elements = this.stripe?.elements({
appearance: {
theme: 'stripe',
// If we want to customise
variables: {
fontFamily: secondaryFontFamily,
},
rules: {
'.Label': {
color: textColor,
fontFamily: secondaryFontFamily,
},
},
},
clientSecret,
});

uneven wadi
#

yes, but you need to add the fonts array, as explained in the link I shared above.

glad pine
#

got it

#

im going to try this now

#

thansk