Ionic 4 how to change placeholder color


#1

Hello team,
how to change placeholder color and opacity of ion-select

.select-placeholder {
color: currentColor;
opacity: 1;
}

I try this but not work :confused:


#2

try this:

ion-select {
    --placeholder-color: //currentColor
}

#3

Try this

–background: aquamarine;


#4

thnx for reply,
but this not work


#5

Hi, you can add a css class ,for example custom-placeholder, to ion-select :

.custom-placeholder {
color: currentColor;
opacity: 1;
}


#6

I was wrong the first try

ion-select {
    color: #f00 !important; //placeholder color
}

#7

thnx @jjdev it works


#8

demokumar

    February 11

thnx for reply,

but this not work


Visit Topic or reply to this email to respond.


In Reply To

albincs

    February 9

Try this –background: aquamarine;


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.