Skip to content

Commit 6679684

Browse files
authored
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.
1 parent 5459f5c commit 6679684

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">

src/components-examples/material/autocomplete/autocomplete-filter/autocomplete-filter-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-optgroup/autocomplete-optgroup-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<form [formGroup]="stateForm">
2-
<mat-form-field appearance="fill">
2+
<mat-form-field>
33
<mat-label>States Group</mat-label>
44
<input type="text"
55
matInput

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,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>State</mat-label>
44
<input matInput
55
aria-label="State"

src/components-examples/material/autocomplete/autocomplete-simple/autocomplete-simple-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
<!-- #docregion input -->
55
<input type="text"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<form>
2-
<mat-form-field class="example-chip-list" appearance="fill">
2+
<mat-form-field class="example-chip-list">
33
<mat-label>Favorite Fruits</mat-label>
44
<mat-chip-grid #chipGrid aria-label="Fruit selection">
55
<mat-chip-row *ngFor="let fruit of fruits" (removed)="remove(fruit)">

src/components-examples/material/chips/chips-form-control/chips-form-control-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<p>
66
<i>Enter video keywords</i>
77
</p>
8-
<mat-form-field appearance="fill" class="example-form-field">
8+
<mat-form-field class="example-form-field">
99
<mat-label>Video keywords</mat-label>
1010
<mat-chip-grid #chipGrid aria-label="Enter keywords" [formControl]="formControl" >
1111
<mat-chip-row *ngFor="let keyword of keywords" (removed)="removeKeyword(keyword)">
@@ -22,4 +22,4 @@
2222

2323
<p>
2424
<b>The following keywords are entered:</b> {{formControl.value}}
25-
</p>
25+
</p>

src/components-examples/material/chips/chips-input/chips-input-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field class="example-chip-list" appearance="fill">
1+
<mat-form-field class="example-chip-list">
22
<mat-label>Favorite Fruits</mat-label>
33
<mat-chip-grid #chipGrid aria-label="Enter fruits">
44
<mat-chip-row *ngFor="let fruit of fruits"
@@ -17,4 +17,4 @@
1717
[matChipInputAddOnBlur]="addOnBlur"
1818
(matChipInputTokenEnd)="add($event)"/>
1919
</mat-chip-grid>
20-
</mat-form-field>
20+
</mat-form-field>

src/components-examples/material/core/ripple-overview/ripple-overview-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<mat-checkbox [(ngModel)]="disabled" class="example-ripple-checkbox">Disabled</mat-checkbox>
33
<mat-checkbox [(ngModel)]="unbounded" class="example-ripple-checkbox">Unbounded</mat-checkbox>
44

5-
<mat-form-field class="example-ripple-form-field" appearance="fill">
5+
<mat-form-field class="example-ripple-form-field">
66
<mat-label>Radius</mat-label>
77
<input matInput [(ngModel)]="radius" type="number">
88
</mat-form-field>
9-
<mat-form-field class="example-ripple-form-field" appearance="fill">
9+
<mat-form-field class="example-ripple-form-field">
1010
<mat-label>Color</mat-label>
1111
<input matInput [(ngModel)]="color" type="text">
1212
</mat-form-field>

src/components-examples/material/datepicker/date-range-picker-comparison/date-range-picker-comparison-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field class="example-form-field" appearance="fill">
1+
<mat-form-field class="example-form-field">
22
<mat-label>First campaign</mat-label>
33
<mat-date-range-input
44
[formGroup]="campaignOne"
@@ -13,7 +13,7 @@
1313
<mat-date-range-picker #campaignOnePicker></mat-date-range-picker>
1414
</mat-form-field>
1515

16-
<mat-form-field class="example-form-field" appearance="fill">
16+
<mat-form-field class="example-form-field">
1717
<mat-label>Second campaign</mat-label>
1818
<mat-date-range-input
1919
[formGroup]="campaignTwo"

src/components-examples/material/datepicker/date-range-picker-forms/date-range-picker-forms-example.html

Lines changed: 1 addition & 1 deletion
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>Enter a date range</mat-label>
33
<mat-date-range-input [formGroup]="range" [rangePicker]="picker">
44
<input matStartDate formControlName="start" placeholder="Start date">

src/components-examples/material/datepicker/date-range-picker-overview/date-range-picker-overview-example.html

Lines changed: 1 addition & 1 deletion
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>Enter a date range</mat-label>
33
<mat-date-range-input [rangePicker]="picker">
44
<input matStartDate placeholder="Start date">

src/components-examples/material/datepicker/date-range-picker-selection-strategy/date-range-picker-selection-strategy-example.html

Lines changed: 1 addition & 1 deletion
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>Enter a date range</mat-label>
33
<mat-date-range-input [rangePicker]="picker">
44
<input matStartDate placeholder="Start date">

src/components-examples/material/datepicker/datepicker-actions/datepicker-actions-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" class="example-form-field">
1+
<mat-form-field class="example-form-field">
22
<mat-label>Choose a date</mat-label>
33
<input matInput [matDatepicker]="datepicker">
44
<mat-hint>MM/DD/YYYY</mat-hint>
@@ -13,7 +13,7 @@
1313
<!-- #enddocregion datepicker-actions -->
1414
</mat-form-field>
1515

16-
<mat-form-field appearance="fill" class="example-form-field">
16+
<mat-form-field class="example-form-field">
1717
<mat-label>Enter a date range</mat-label>
1818
<mat-date-range-input [rangePicker]="rangePicker">
1919
<input matStartDate placeholder="Start date">

src/components-examples/material/datepicker/datepicker-api/datepicker-api-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field class="example-full-width" appearance="fill">
1+
<mat-form-field class="example-full-width">
22
<mat-label>Choose a date</mat-label>
33
<input matInput [matDatepicker]="picker">
44
<mat-hint>MM/DD/YYYY</mat-hint>

src/components-examples/material/datepicker/datepicker-color/datepicker-color-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<mat-form-field color="accent" appearance="fill">
1+
<mat-form-field color="accent">
22
<mat-label>Inherited calendar color</mat-label>
33
<input matInput [matDatepicker]="picker1">
44
<mat-hint>MM/DD/YYYY</mat-hint>
55
<mat-datepicker-toggle matIconSuffix [for]="picker1"></mat-datepicker-toggle>
66
<mat-datepicker #picker1></mat-datepicker>
77
</mat-form-field>
88

9-
<mat-form-field color="accent" appearance="fill">
9+
<mat-form-field color="accent">
1010
<mat-label>Custom calendar color</mat-label>
1111
<input matInput [matDatepicker]="picker2">
1212
<mat-hint>MM/DD/YYYY</mat-hint>

src/components-examples/material/datepicker/datepicker-custom-header/datepicker-custom-header-example.html

Lines changed: 1 addition & 1 deletion
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>Custom calendar header</mat-label>
33
<input matInput [matDatepicker]="picker">
44
<mat-hint>MM/DD/YYYY</mat-hint>

src/components-examples/material/datepicker/datepicker-custom-icon/datepicker-custom-icon-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field class="example-full-width" appearance="fill">
1+
<mat-form-field class="example-full-width">
22
<mat-label>Choose a date</mat-label>
33
<input matInput [matDatepicker]="picker">
44
<mat-hint>MM/DD/YYYY</mat-hint>

src/components-examples/material/datepicker/datepicker-date-class/datepicker-date-class-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field class="example-full-width" appearance="fill">
1+
<mat-form-field class="example-full-width">
22
<mat-label>Choose a date</mat-label>
33
<input matInput [matDatepicker]="picker">
44
<mat-hint>MM/DD/YYYY</mat-hint>

src/components-examples/material/datepicker/datepicker-disabled/datepicker-disabled-example.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p>
2-
<mat-form-field appearance="fill">
2+
<mat-form-field>
33
<mat-label>Completely disabled</mat-label>
44
<input matInput [matDatepicker]="dp1" disabled>
55
<mat-hint>MM/DD/YYYY</mat-hint>
@@ -9,7 +9,7 @@
99
</p>
1010

1111
<p>
12-
<mat-form-field appearance="fill">
12+
<mat-form-field>
1313
<mat-label>Popup disabled</mat-label>
1414
<input matInput [matDatepicker]="dp2">
1515
<mat-hint>MM/DD/YYYY</mat-hint>
@@ -19,7 +19,7 @@
1919
</p>
2020

2121
<p>
22-
<mat-form-field appearance="fill">
22+
<mat-form-field>
2323
<mat-label>Input disabled</mat-label>
2424
<input matInput [matDatepicker]="dp3" disabled>
2525
<mat-hint>MM/DD/YYYY</mat-hint>

src/components-examples/material/datepicker/datepicker-events/datepicker-events-example.html

Lines changed: 1 addition & 1 deletion
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>Input & change events</mat-label>
33
<input matInput [matDatepicker]="picker"
44
(dateInput)="addEvent('input', $event)" (dateChange)="addEvent('change', $event)">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field class="example-full-width" appearance="fill">
1+
<mat-form-field class="example-full-width">
22
<mat-label>Choose a date</mat-label>
33
<input matInput [matDatepickerFilter]="myFilter" [matDatepicker]="picker">
44
<mat-hint>MM/DD/YYYY</mat-hint>

src/components-examples/material/datepicker/datepicker-formats/datepicker-formats-example.html

Lines changed: 1 addition & 1 deletion
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>Verbose datepicker</mat-label>
33
<input matInput [matDatepicker]="dp" [formControl]="date">
44
<mat-hint>MMMM DD, YYYY</mat-hint>

src/components-examples/material/datepicker/datepicker-locale/datepicker-locale-example.html

Lines changed: 1 addition & 1 deletion
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>Different locale</mat-label>
33
<input matInput [matDatepicker]="dp">
44
<mat-hint>{{getDateFormatString()}}</mat-hint>

src/components-examples/material/datepicker/datepicker-min-max/datepicker-min-max-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field class="example-full-width" appearance="fill">
1+
<mat-form-field class="example-full-width">
22
<mat-label>Choose a date</mat-label>
33
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="picker">
44
<mat-hint>MM/DD/YYYY</mat-hint>

src/components-examples/material/datepicker/datepicker-moment/datepicker-moment-example.html

Lines changed: 1 addition & 1 deletion
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>Moment.js datepicker</mat-label>
33
<input matInput [matDatepicker]="dp" [formControl]="date">
44
<mat-hint>MM/DD/YYYY</mat-hint>

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

Lines changed: 1 addition & 1 deletion
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>Choose a date</mat-label>
33
<!-- #docregion toggle -->
44
<input matInput [matDatepicker]="picker">

src/components-examples/material/datepicker/datepicker-start-view/datepicker-start-view-example.html

Lines changed: 1 addition & 1 deletion
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>Choose a date</mat-label>
33
<input matInput [matDatepicker]="picker">
44
<mat-hint>MM/DD/YYYY</mat-hint>

src/components-examples/material/datepicker/datepicker-touch/datepicker-touch-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field class="example-full-width" appearance="fill">
1+
<mat-form-field class="example-full-width">
22
<mat-label>Choose a date</mat-label>
33
<input matInput [matDatepicker]="picker">
44
<mat-hint>MM/DD/YYYY</mat-hint>

0 commit comments

Comments
 (0)