Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

refactor: remove default form field appearance in Stackblitz #1002

Merged
merged 1 commit into from
Jun 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/assets/stack-blitz/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ import {BrowserModule} from '@angular/platform-browser';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {DemoMaterialModule} from './app/material-module';
import {MAT_FORM_FIELD_DEFAULT_OPTIONS} from '@angular/material/form-field';

import {MaterialDocsExample} from './app/material-docs-example';

// Default MatFormField appearance to 'fill' as that is the new recommended approach and the
// `legacy` and `standard` appearances are scheduled for deprecation in version 10.
// This makes the examples that use MatFormField render the same in StackBlitz as on the docs site.
@NgModule({
imports: [
BrowserModule,
Expand All @@ -25,10 +21,7 @@ import {MaterialDocsExample} from './app/material-docs-example';
],
entryComponents: [MaterialDocsExample],
declarations: [MaterialDocsExample],
bootstrap: [MaterialDocsExample],
providers: [
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'fill' } },
]
bootstrap: [MaterialDocsExample]
})
export class AppModule {}

Expand Down