-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
bug(MatFormField):MatFormField suffix and prefix are NOT aligned with floating placeholder - even on DEMO PAGE #21846
Comments
I think that in general the new form field appearances aren't really made for text-based prefixes. We should either remove those examples or switch them to icons. |
Thanks @annieyw for fixing the example! I'm leaving this bug open because we should be able to do more to improve this experience in the MDC version of the form-field. In that version we actually differentiate between text and icon prefix/suffixes so we can treat them differently. I think the right thing to do for the MDC version is hide the text prefix/suffix when the label is not floating (this is what MDC does in their own demos) |
Reproduction
got to https://material.angular.io/components/form-field/overview#prefix--suffix
Prefix and suffix of second example is not aligned with floating placeholder (when it is not floating)
Expected Behavior
Everything to be alligned
Actual Behavior
Environment
Angular demo page for 11.1.1
The text was updated successfully, but these errors were encountered: