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

Commit f3b97a3

Browse files
authored
refactor: remove default form field appearance in Stackblitz (#1002)
Companion PR to angular/components#22837. Removes the default form field appearance so that we get a consistent result between the docs site and Stackblitz.
1 parent 500a6fa commit f3b97a3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/assets/stack-blitz/src/main.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ import {BrowserModule} from '@angular/platform-browser';
66
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
77
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
88
import {DemoMaterialModule} from './app/material-module';
9-
import {MAT_FORM_FIELD_DEFAULT_OPTIONS} from '@angular/material/form-field';
109

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

13-
// Default MatFormField appearance to 'fill' as that is the new recommended approach and the
14-
// `legacy` and `standard` appearances are scheduled for deprecation in version 10.
15-
// This makes the examples that use MatFormField render the same in StackBlitz as on the docs site.
1612
@NgModule({
1713
imports: [
1814
BrowserModule,
@@ -25,10 +21,7 @@ import {MaterialDocsExample} from './app/material-docs-example';
2521
],
2622
entryComponents: [MaterialDocsExample],
2723
declarations: [MaterialDocsExample],
28-
bootstrap: [MaterialDocsExample],
29-
providers: [
30-
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'fill' } },
31-
]
24+
bootstrap: [MaterialDocsExample]
3225
})
3326
export class AppModule {}
3427

0 commit comments

Comments
 (0)