Skip to content

Commit 31fd6a2

Browse files
crisbetommalerba
authored andcommitted
chore: fix typo in form field docs (#11420)
Fixes a typo in the docs about the form field. Fixes #11419.
1 parent f59658d commit 31fd6a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/form-field/form-field.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The second important difference is that the `standard`, `fill`, and `outline` ap
3434
promote placeholders to labels. For the `legacy` appearance specifying
3535
`<input placeholder="placeholder">` will result in a floating label being added to the
3636
`mat-form-field`. For the newer variants it will just add a normal placeholder to the input. If you
37-
want a floating label, add a `<mat-label>` to the `mat-form-filed`.
37+
want a floating label, add a `<mat-label>` to the `mat-form-field`.
3838

3939
<!-- example(form-field-appearance) -->
4040

@@ -44,7 +44,7 @@ The floating label is a text label displayed on top of the form field control wh
4444
the control does not contain any text. By default, when text is present the floating label
4545
floats above the form field control. The label for a form field can be specified by adding a
4646
`mat-label` element.
47-
47+
4848
In the legacy version of the `<mat-form-field>` (one that has no `appearance` attribute or has
4949
`appearance="legacy"`) if a label is not specified, the `placeholder` attribute on the form control
5050
is promoted to a label. If a label is specified, the `placeholder` will be displayed as a normal

0 commit comments

Comments
 (0)