Skip to content

Commit e94bfbe

Browse files
committed
docs: clean up explicit form field appearance (#27103)
In #22837 we had to add `appearance="fill"` to all the examples to ensure a consistent appearance between the docs site and Stackblitz during the MDC transition. Now that the MDC components are the default, we don't need the explicit `appearance` anymore since `fill` is the default. (cherry picked from commit 6679684)
1 parent 5aad5df commit e94bfbe

File tree

89 files changed

+146
-146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+146
-146
lines changed

src/components-examples/cdk/a11y/focus-monitor-focus-via/focus-monitor-focus-via-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<button #unmonitored>2. Not Monitored</button>
44
</div>
55

6-
<mat-form-field appearance="fill">
6+
<mat-form-field>
77
<mat-label>Simulated focus origin</mat-label>
88
<mat-select #simulatedOrigin value="mouse">
99
<mat-option value="mouse">Mouse</mat-option>

src/components-examples/cdk/text-field/text-field-autofill-directive/text-field-autofill-directive-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<form (submit)="$event.preventDefault()">
2-
<mat-form-field appearance="fill">
2+
<mat-form-field>
33
<mat-label>First name</mat-label>
44
<input matInput (cdkAutofill)="firstNameAutofilled = $event.isAutofilled">
55
<mat-hint *ngIf="firstNameAutofilled">Autofilled!</mat-hint>
66
</mat-form-field>
7-
<mat-form-field appearance="fill">
7+
<mat-form-field>
88
<mat-label>Last name</mat-label>
99
<input matInput (cdkAutofill)="lastNameAutofilled = $event.isAutofilled">
1010
<mat-hint *ngIf="lastNameAutofilled">Autofilled!</mat-hint>

src/components-examples/cdk/text-field/text-field-autofill-monitor/text-field-autofill-monitor-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<form (submit)="$event.preventDefault()">
2-
<mat-form-field appearance="fill">
2+
<mat-form-field>
33
<mat-label>First name</mat-label>
44
<input matInput #first>
55
<mat-hint *ngIf="firstNameAutofilled">Autofilled!</mat-hint>
66
</mat-form-field>
7-
<mat-form-field appearance="fill">
7+
<mat-form-field>
88
<mat-label>Last name</mat-label>
99
<input matInput #last>
1010
<mat-hint *ngIf="lastNameAutofilled">Autofilled!</mat-hint>

src/components-examples/cdk/text-field/text-field-autosize-textarea/text-field-autosize-textarea-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field appearance="fill">
1+
<mat-form-field>
22
<mat-label>Font size</mat-label>
33
<mat-select #fontSize value="16px" (selectionChange)="triggerResize()">
44
<mat-option value="10px">10px</mat-option>
@@ -10,7 +10,7 @@
1010
</mat-select>
1111
</mat-form-field>
1212

13-
<mat-form-field [style.fontSize]="fontSize.value" appearance="fill">
13+
<mat-form-field [style.fontSize]="fontSize.value">
1414
<mat-label>Autosize textarea</mat-label>
1515
<textarea matInput
1616
cdkTextareaAutosize

src/components-examples/material-experimental/popover-edit/popover-edit-cell-span-mat-table/popover-edit-cell-span-mat-table-example.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
[matEditLensPreservedFormValue]="preservedValues.get(ctx.person)"
88
(matEditLensPreservedFormValueChange)="preservedValues.set(ctx.person, $event)">
99
<div mat-edit-content class="example-input-container">
10-
<mat-form-field appearance="fill">
10+
<mat-form-field>
1111
<input matInput [ngModel]="ctx.person.firstName" name="firstName" required
1212
[attr.cdkFocusInitial]="ctx.focus === 'firstName' || null">
1313
</mat-form-field>
14-
<mat-form-field appearance="fill">
14+
<mat-form-field>
1515
<input matInput [ngModel]="ctx.person.middleName" name="middleName"
1616
[attr.cdkFocusInitial]="ctx.focus === 'middleName' || null">
1717
</mat-form-field>
18-
<mat-form-field appearance="fill">
18+
<mat-form-field>
1919
<input matInput [ngModel]="ctx.person.lastName" name="lastName" required
2020
[attr.cdkFocusInitial]="ctx.focus === 'lastName' || null">
2121
</mat-form-field>

src/components-examples/material-experimental/popover-edit/popover-edit-mat-table-flex/popover-edit-mat-table-flex-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[matEditLensPreservedFormValue]="preservedWeightValues.get(element)"
1212
(matEditLensPreservedFormValueChange)="preservedWeightValues.set(element, $event)">
1313
<div mat-edit-content>
14-
<mat-form-field appearance="fill">
14+
<mat-form-field>
1515
<input matInput type="number" [ngModel]="element.weight" name="weight" required>
1616
</mat-form-field>
1717
</div>
@@ -42,7 +42,7 @@
4242
(matEditLensPreservedFormValueChange)="preservedNameValues.set(element, $event)">
4343
<h2 mat-edit-title>Name</h2>
4444
<div mat-edit-content>
45-
<mat-form-field appearance="fill">
45+
<mat-form-field>
4646
<input matInput [ngModel]="element.name" name="name" required>
4747
</mat-form-field>
4848
</div>

src/components-examples/material-experimental/popover-edit/popover-edit-mat-table/popover-edit-mat-table-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(ngSubmit)="onSubmitWeight(element, f)"
1111
[(matEditLensPreservedFormValue)]="weightValues.for(element).value">
1212
<div mat-edit-content>
13-
<mat-form-field appearance="fill">
13+
<mat-form-field>
1414
<input matInput type="number" [ngModel]="element.weight" name="weight" required>
1515
</mat-form-field>
1616
</div>
@@ -57,7 +57,7 @@
5757
[(matEditLensPreservedFormValue)]="nameValues.for(element).value">
5858
<h2 mat-edit-title>Name</h2>
5959
<div mat-edit-content>
60-
<mat-form-field appearance="fill">
60+
<mat-form-field>
6161
<input matInput [ngModel]="element.name" name="name" required>
6262
</mat-form-field>
6363
</div>

src/components-examples/material-experimental/popover-edit/popover-edit-tab-out-mat-table/popover-edit-tab-out-mat-table-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[matEditLensPreservedFormValue]="preservedWeightValues.get(element)"
1313
(matEditLensPreservedFormValueChange)="preservedWeightValues.set(element, $event)">
1414
<div mat-edit-content>
15-
<mat-form-field appearance="fill">
15+
<mat-form-field>
1616
<input matInput type="number" [ngModel]="element.weight" name="weight" required>
1717
</mat-form-field>
1818
</div>
@@ -44,7 +44,7 @@
4444
[matEditLensPreservedFormValue]="preservedNameValues.get(element)"
4545
(matEditLensPreservedFormValueChange)="preservedNameValues.set(element, $event)">
4646
<div mat-edit-content>
47-
<mat-form-field appearance="fill">
47+
<mat-form-field>
4848
<input matInput [ngModel]="element.name" name="name" required>
4949
</mat-form-field>
5050
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<form class="example-form">
2-
<mat-form-field class="example-full-width" appearance="fill">
2+
<mat-form-field class="example-full-width">
33
<mat-label>Number</mat-label>
44
<input type="text"
55
placeholder="Pick one"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<form class="example-form">
2-
<mat-form-field class="example-full-width" appearance="fill">
2+
<mat-form-field class="example-full-width">
33
<mat-label>Assignee</mat-label>
44
<input type="text" matInput [formControl]="myControl" [matAutocomplete]="auto">
55
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displayFn">

0 commit comments

Comments
 (0)