#jimmyt666

1 messages · Page 1 of 1 (latest)

inland gulchBOT
regal herald
#

Good question, checking in to this and will get back to you

#

Are you getting an error when you specify a rule for .Label--invalid?

inland gulchBOT
hasty mauve
#

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)'
},

silent surge
#

Hi 👋
I'm stepping in as @regal herald has to go soon

hasty mauve
#

Okay, does it mean there is no way to apply the backgroundColor to the Label class then?

silent surge
#

Correct

hasty mauve
#

Like apply the styling via stylesheet css rules also not supported?

silent surge
#

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

hasty mauve
#

ok, i see

#

thanks!