-
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
docs(material/form-field): add placeholder to prefix/suffix example for better alignment #22775
Conversation
<mat-label>Amount</mat-label> | ||
<input matInput type="number" class="example-right-align"> | ||
<span matPrefix>$ </span> | ||
<span matSuffix>.00</span> |
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.
My understanding is that the example tried to show how to use text in the prefix/suffix specifically so I'm not sure that we can replace it with an icon. @mmalerba might have more context here.
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.
Yes this is supposed to be showing text prefix/suffix, the form-field above already demonstrates icons
The MDC form-field actually split the prefix into 2 different selectors: |
Updated change to add placeholder |
…or better alignment
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.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
#21846
Note: MDC form field should hide text prefix/suffix when label is floating