Skip to content

Commit c7afd8e

Browse files
crisbetojelbourn
authored andcommitted
chore: clear out mat-input-container references (#8535)
Clears out all the leftover `mat-input-container` usages inside the demo app and unit tests in order to avoid any potential confusion and to make removing the selector easier in the future.
1 parent e5bf7df commit c7afd8e

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/demo-app/autocomplete/autocomplete-demo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
<mat-card>
5656
<div>Option groups (currentGroupedState): {{ currentGroupedState }}</div>
5757

58-
<mat-input-container>
58+
<mat-form-field>
5959
<input
6060
matInput
6161
placeholder="State"
6262
[matAutocomplete]="groupedAuto"
6363
[(ngModel)]="currentGroupedState"
6464
(ngModelChange)="filteredGroupedStates = filterStateGroups(currentGroupedState)">
65-
</mat-input-container>
65+
</mat-form-field>
6666
</mat-card>
6767
</div>
6868

src/demo-app/dialog/dialog-demo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ <h2>Other options</h2>
103103

104104
<p>It's Jazz!</p>
105105

106-
<mat-input-container>
106+
<mat-form-field>
107107
<input matInput placeholder="How much?" #howMuch>
108-
</mat-input-container>
108+
</mat-form-field>
109109

110110
<p> {{ data.message }} </p>
111111
<button type="button" (click)="dialogRef.close(lastCloseResult = howMuch.value)">Close dialog</button>

src/demo-app/stepper/stepper-demo.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ <h3>Linear Vertical Stepper Demo using a single form</h3>
55
<mat-vertical-stepper formArrayName="formArray" [linear]="!isNonLinear">
66
<mat-step formGroupName="0" [stepControl]="formArray?.get([0])">
77
<ng-template matStepLabel>Fill out your name</ng-template>
8-
<mat-input-container>
8+
<mat-form-field>
99
<input matInput placeholder="First Name" formControlName="firstNameFormCtrl" required>
1010
<mat-error>This field is required</mat-error>
11-
</mat-input-container>
11+
</mat-form-field>
1212

13-
<mat-input-container>
13+
<mat-form-field>
1414
<input matInput placeholder="Last Name" formControlName="lastNameFormCtrl" required>
1515
<mat-error>This field is required</mat-error>
16-
</mat-input-container>
16+
</mat-form-field>
1717
<div>
1818
<button mat-button matStepperNext type="button">Next</button>
1919
</div>
@@ -23,10 +23,10 @@ <h3>Linear Vertical Stepper Demo using a single form</h3>
2323
<ng-template matStepLabel>
2424
<div>Fill out your email address</div>
2525
</ng-template>
26-
<mat-input-container>
26+
<mat-form-field>
2727
<input matInput placeholder="Email address" formControlName="emailFormCtrl">
2828
<mat-error>The input is invalid.</mat-error>
29-
</mat-input-container>
29+
</mat-form-field>
3030
<div>
3131
<button mat-button matStepperPrevious type="button">Back</button>
3232
<button mat-button matStepperNext type="button">Next</button>

src/lib/autocomplete/autocomplete.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,9 +1901,9 @@ class AutocompleteWithFormsAndNonfloatingPlaceholder {
19011901

19021902
@Component({
19031903
template: `
1904-
<mat-input-container>
1904+
<mat-form-field>
19051905
<input matInput placeholder="State" [matAutocomplete]="auto" [(ngModel)]="selectedState">
1906-
</mat-input-container>
1906+
</mat-form-field>
19071907
19081908
<mat-autocomplete #auto="matAutocomplete">
19091909
<mat-optgroup *ngFor="let group of stateGroups" [label]="group.label">
@@ -1935,9 +1935,9 @@ class AutocompleteWithGroups {
19351935

19361936
@Component({
19371937
template: `
1938-
<mat-input-container>
1938+
<mat-form-field>
19391939
<input matInput placeholder="State" [matAutocomplete]="auto" [(ngModel)]="selectedState">
1940-
</mat-input-container>
1940+
</mat-form-field>
19411941
19421942
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="optionSelected($event)">
19431943
<mat-option *ngFor="let state of states" [value]="state">

0 commit comments

Comments
 (0)