#daniel_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1270113558201368606
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
variables goes within the appearance parameter https://docs.stripe.com/elements/appearance-api?platform=web#variables
theme: 'stripe',
variables: {
colorPrimary: '#0570de',
colorBackground: '#ffffff',
colorText: '#30313d',
colorDanger: '#df1b41',
fontFamily: 'Ideal Sans, system-ui, sans-serif',
spacingUnit: '2px',
borderRadius: '4px',
// See all possible variables below
}
};
// Pass the appearance object to the Elements instance
const elements = stripe.elements({clientSecret, appearance});```
Where I need to pass the apperance variable because I dont use the const elements
Oh wait I think I know
give me second
I want to edit a part of the text the underrline trext should be still black
For the Cash app and ACH text, that is called .TabLabel https://docs.stripe.com/elements/appearance-api?platform=web#tabs
Trying to find what the text in the country dropdown is
ok, give me a second
Ok now it looks beter only onderline text left but I cont find how to dfo it
The Link related text may be .Label though I am having trouble confirming that from the docs
Can you try that while I look further?
I already tried it and I doesnt work
Yes
Can you try .Link? Testing myself but I don't have link in my Payment Element like that currently
No it doesnt work
My apologies, getting this working on my side so I can reproduce
Still trying to set this up on my side. Link is not behaving. One other contender that we found is accessibleColorOnColorPrimary
accessibleColorOnColorPrimary doesnt work
Sounds good, just got this working on my test page. Will report back when I've found the right rule
It is colorPrimary in variables
Can you send me the text of your settings?
const options: StripeElementsOptions = useMemo(
() => ({
clientSecret: subscription?.clientSecret,
appearance: {
theme: 'flat',
variables: {
colorPrimary: 'White',
},
rules: {
'.Label': {
color: 'White',
fontWeight: 'bold',
},
'.TermsText': {
color: '#BFBFBF',
},
'.Link': {
color: 'White',
},
}
},
layout: {
type: 'tabs',
defaultCollapsed: false,
},
}),
[subscription]
)