Skip to content

docs(material/form-field): add placeholder to prefix/suffix example for better alignment #22775

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

Merged
merged 1 commit into from
May 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
</button>
</mat-form-field>

<mat-form-field appearance="fill">
<mat-form-field appearance="fill" floatLabel="always">
<mat-label>Amount</mat-label>
<input matInput type="number" class="example-right-align">
<input matInput type="number" class="example-right-align" placeholder="0">
<span matPrefix>$&nbsp;</span>
<span matSuffix>.00</span>
Copy link
Member

@crisbeto crisbeto May 25, 2021

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.

Copy link
Contributor

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

</mat-form-field>
Expand Down