Change color of an option selected in one field

Hi,

I’m using the “dawn 2.0” theme and I have created a gender field in the customer registration form.

This is the code I have added to the “customers/register.liquid” section:


I have set “Gender” as a default option (on top of Male and Female) but the problem is that it appears in black as if it was a real option.

Would it be a way to change the text color of this option only and make it appear in grey like the other field titles (First Name, Last Name, …) ?

Many thanks in advance for your help !

Hi @totorsjp ,

Can you share your store URL

Hi @totorsjp ,

Go to Assets > base.css and paste this at the bottom of the file:

.customer select {
    color: rgba(var(--color-foreground),.75);
}

Hope it helps!