Skip to content

Commit 5d3cbc9

Browse files
committed
docs(material/autocomplete): add mat-label to examples (#21448)
(cherry picked from commit 038fea7)
1 parent 88558df commit 5d3cbc9

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

src/components-examples/material/autocomplete/autocomplete-auto-active-first-option/autocomplete-auto-active-first-option-example.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<form class="example-form">
22
<mat-form-field class="example-full-width">
3+
<mat-label>Number</mat-label>
34
<input type="text"
45
placeholder="Pick one"
56
aria-label="Number"

src/components-examples/material/autocomplete/autocomplete-filter/autocomplete-filter-example.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<form class="example-form">
22
<mat-form-field class="example-full-width">
3+
<mat-label>Number</mat-label>
34
<input type="text"
45
placeholder="Pick one"
56
aria-label="Number"

src/components-examples/material/autocomplete/autocomplete-optgroup/autocomplete-optgroup-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<form [formGroup]="stateForm">
22
<mat-form-field>
3+
<mat-label>States Group</mat-label>
34
<input type="text"
45
matInput
5-
placeholder="States Group"
66
formControlName="stateGroup"
77
required
88
[matAutocomplete]="autoGroup">

src/components-examples/material/autocomplete/autocomplete-overview/autocomplete-overview-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<form class="example-form">
22
<mat-form-field class="example-full-width">
3+
<mat-label>State</mat-label>
34
<input matInput
4-
placeholder="State"
55
aria-label="State"
66
[matAutocomplete]="auto"
77
[formControl]="stateCtrl">

src/components-examples/material/autocomplete/autocomplete-simple/autocomplete-simple-example.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<form class="example-form">
22
<mat-form-field class="example-full-width">
3+
<mat-label>Number</mat-label>
34
<!-- #docregion input -->
45
<input type="text"
56
placeholder="Pick one"

0 commit comments

Comments
 (0)