-
-
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
Blurry TextField label when variant="filled" #17443
Comments
@chibis0v As far as I know, there is nothing we can do about it. Do you see any leverage? |
Why? Without variant="filled" everything works great! I think issue in
vs
So we could adjust variant="filled" and use maybe margin for position it correctly. |
Any fix proposal is welcome. |
@oliviertassinari ok, I will try to provide some solution. |
@oliviertassinari it seems that variant="outlined" also has this issue, but it less visisible. variant="outlined" is identical to this google signup page https://accounts.google.com/signup. Maybe you can proceed with their implementation? They don't have things like 1.5px in translate by the way. |
@oliviertassinari please check updated sandbox https://codesandbox.io/s/material-demo-2ymqu If you click on button it seems animation of that click produces blurring to label. How this possible? If you apply disableRipple to button everything ok. No blur for focus on textfield and button click. But I need ripple effect :( |
@chibis0v I have proposed aggressive changes 3 weeks ago in #17221. We have removed the z-index: 0 from the touch ripple. Adding it back seems to solve the blur issue. I would propose that we add it back. Would it solve your problem? |
@oliviertassinari it works! Thank you! I added z-index: 0 to .MuiTouchRipple-root and blur has gone! It will be great to see this fix in next release! Why did you do this change then? |
@chibis0v Do you want to submit a pull request? The property was removed as an attempt to simplify the existing styles. It was a 3 years old piece of code we added to solve another problem that doesn't seem to manifest anymore with the recent versions of Chrome. |
@oliviertassinari I'll try to submit pull request. Thank you! |
I was facing the same issue. searched "blur" in the html dom and found it in "grammerly" extension code. |
Hi! I have issue with TextField label if variant="filled" is set then label will become blurry on focus or unfocus.
Current Behavior 😯
https://codesandbox.io/s/material-demo-2ymqu
Click to edit field and you will see blurry label for about 1 second like this
Then it will return to correct crisp view
If variant="filled" not set label always crisp.
Expected Behavior 🤔
Label should be always stay crisp (not blurry).
Context 🔦
It seems that this is old CSS Translate issue in Chrome browsers with hardware acceleration turns on.
I don't have such issue in Firefox for example.
Also interesting fact that Google doesn't have this issue in their signup page.
Please help! Thank you!
Your Environment 🌎
The text was updated successfully, but these errors were encountered: