Skip to content

Commit 2594c0b

Browse files
sAleksovskijelbourn
authored andcommitted
docs(material/input): add type="email" to input examples (#20796)
Adds type="email" to examples in Overview and Examples page for inputs. Fixes #20682 (cherry picked from commit b0e97af)
1 parent fdf71ac commit 2594c0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components-examples/material/input/input-error-state-matcher/input-error-state-matcher-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">
33
<mat-label>Email</mat-label>
4-
<input matInput [formControl]="emailFormControl" [errorStateMatcher]="matcher"
4+
<input type="email" matInput [formControl]="emailFormControl" [errorStateMatcher]="matcher"
55
placeholder="Ex. [email protected]">
66
<mat-hint>Errors appear instantly!</mat-hint>
77
<mat-error *ngIf="emailFormControl.hasError('email') && !emailFormControl.hasError('required')">

src/components-examples/material/input/input-errors/input-errors-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">
33
<mat-label>Email</mat-label>
4-
<input matInput [formControl]="emailFormControl" placeholder="Ex. [email protected]">
4+
<input type="email" matInput [formControl]="emailFormControl" placeholder="Ex. [email protected]">
55
<mat-error *ngIf="emailFormControl.hasError('email') && !emailFormControl.hasError('required')">
66
Please enter a valid email address
77
</mat-error>

0 commit comments

Comments
 (0)