#jimmyt666
1 messages · Page 1 of 1 (latest)
Good question, checking in to this and will get back to you
Haven't been able to test yet but I do see that this section specifically mentions .Lavel--invalid https://stripe.com/docs/elements/appearance-api?platform=web#all-rules
Are you getting an error when you specify a rule for .Label--invalid?
yes, let me send the error msg to you
it is in the console
stripe.elements(): "backgroundColor" is not a supported property for ".Label--invalid"
I was applying the rule like this when rendering the Stripe Paymant Element '.Label--invalid': {
color: 'var(--colorDanger)',
backgroundColor: 'var(--colorDanger)'
},
Hi 👋
I'm stepping in as @regal herald has to go soon
I think the issue here is that the Label class doesn't support the backgroundColor CSS property
https://stripe.com/docs/elements/appearance-api?platform=web#supported-css-properties
Okay, does it mean there is no way to apply the backgroundColor to the Label class then?
Correct
Like apply the styling via stylesheet css rules also not supported?
You can try it out but we don't guarantee we won't change class names in the rendered HTML elements. It's why we have the Appearance API