Skip to content

Commit 7f9f4e7

Browse files
devversionandrewseguin
authored andcommitted
chore: add outline custom form-field control to mdc-form-field demo
In order to better test how custom form-field control's integrate with the MDC-based form-field, the demo should render a custom form-field control in all variants. Fill is already displayed.
1 parent 86534c0 commit 7f9f4e7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/components-examples/material-experimental/mdc-form-field/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const EXAMPLES = [
2525
ReactiveFormsModule,
2626
],
2727
declarations: [...EXAMPLES, MyTelInput],
28-
exports: EXAMPLES,
28+
exports: [...EXAMPLES, MyTelInput],
2929
entryComponents: EXAMPLES,
3030
})
3131
export class MdcFormFieldExamplesModule {

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,5 +703,13 @@ <h3>&lt;textarea&gt; with bindable autosize </h3>
703703
<mat-card-content>
704704
<h4>Custom control</h4>
705705
<form-field-custom-control-example></form-field-custom-control-example>
706+
<p>
707+
<mat-form-field appearance="outline">
708+
<mat-label>Phone number</mat-label>
709+
<example-tel-input required></example-tel-input>
710+
<mat-icon matSuffix>phone</mat-icon>
711+
<mat-hint>Include area code</mat-hint>
712+
</mat-form-field>
713+
</p>
706714
</mat-card-content>
707715
</mat-card>

0 commit comments

Comments
 (0)