-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TextField] Fix disabled input color in Safari #7065
Conversation
@@ -57,6 +57,7 @@ const getStyles = (props, context, state) => { | |||
color: props.disabled ? disabledTextColor : textColor, | |||
cursor: 'inherit', | |||
font: 'inherit', | |||
WebkitTextFillColor: props.disabled ? disabledTextColor : textColor, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would using currentColor work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess not as it's the inital value.
Do we also have that issue on the next branch? |
Thanks |
Port #7065 into the next branch, WebkitTextFillColor has proven not to be the right fix.
I have port that change into the next branch 964e112, the correct fix has proven to be otherwise. I'm assuming it's wrong in the master branch too. However, I don't have much interest looking into it, maybe you have. I have used WebkitOpacity instead. |
@oliviertassinari Interesting! I did some research yesterday but couldn't find much information on the root cause. As long as it works it's fine by me 👍 |
When an input field is rendered disabled in Safari the input color sometimes is ignored. Apparently this happens only with some colors (e.g.
#666
leads to the bug, whereasblue
doesn't). Tested with Safari 10.1.1.See this Stack Overflow question for context.
Here's a JSFiddle demonstrating the issue and solution.