Skip to content

Commit 1b1ae03

Browse files
devversionandrewseguin
authored andcommitted
chore: add outline mdc-form-field with autocomplete to demo
1 parent 7f9f4e7 commit 1b1ae03

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

src/dev-app/mdc-input/mdc-input-demo.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,20 @@ <h3>&lt;textarea&gt; with bindable autosize </h3>
637637
<mat-card class="demo-card demo-basic">
638638
<mat-toolbar color="primary">Autocomplete</mat-toolbar>
639639
<mat-card-content>
640-
<mat-form-field>
640+
<mat-form-field class="demo-block">
641+
<mat-label>Pick Number</mat-label>
642+
<input type="text" aria-label="Number" matInput
643+
[matAutocomplete]="autoComplete1">
644+
<mat-autocomplete #autoComplete1="matAutocomplete">
645+
<mat-option *ngFor="let option of options" [value]="option">{{option}}</mat-option>
646+
</mat-autocomplete>
647+
</mat-form-field>
648+
649+
<mat-form-field appearance="outline" class="demo-block">
641650
<mat-label>Pick Number</mat-label>
642651
<input type="text" aria-label="Number" matInput
643-
[matAutocomplete]="auto">
644-
<mat-autocomplete #auto="matAutocomplete">
652+
[matAutocomplete]="autoComplete2">
653+
<mat-autocomplete #autoComplete2="matAutocomplete">
645654
<mat-option *ngFor="let option of options" [value]="option">{{option}}</mat-option>
646655
</mat-autocomplete>
647656
</mat-form-field>

src/dev-app/mdc-input/mdc-input-demo.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
width: 100%;
1717
}
1818

19+
.demo-block {
20+
display: block;
21+
}
22+
1923
.demo-card {
2024
margin: 16px;
2125

0 commit comments

Comments
 (0)