Reputation: 20557
I have a few text input fields, two of which are disabled, they look right on the PC browser but when I look at it on the iPad the color of the text doesn't change to what it is meant to.
I have this style on disabled fields:
input[disabled='disabled']
{
color:#555;
}
But the iPad doesn't seem to take notice of it.
Any ideas? This happens for all disabled input text fields.
Upvotes: 1
Views: 1403
Reputation: 317
You may try to override the opacity, it works for me.
input:disabled {
-webkit-text-fill-color: rgba(0, 0, 0, 1);
-webkit-opacity: 1;
}
Upvotes: 0
Reputation: 145
this safari version doesn't support your css sadly you have to use extra classes on your fields like class="disabled"
Upvotes: 2