This repository was archived by the owner on Dec 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/assets/stack-blitz/src Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 3
3
This is the repository for the [ Angular Components documentation site] ( https://material.angular.io/ ) .
4
4
5
5
Versions of this site are also available for
6
- - [ Beta] ( https://next.material.angular.io/ )
7
6
- [ v5] ( https://v5.material.angular.io/ )
8
7
- [ v6] ( https://v6.material.angular.io/ )
9
8
- [ v7] ( https://v7.material.angular.io/ )
10
9
- [ v8] ( https://material.angular.io/ )
10
+ - [ v9-rc] ( https://next.material.angular.io/ )
11
11
12
12
## Contributing
13
13
Please open bugs against the Angular Material and CDK components, directives, documentation
Original file line number Diff line number Diff line change @@ -8,9 +8,13 @@ import {BrowserModule} from '@angular/platform-browser';
8
8
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' ;
9
9
import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ;
10
10
import { DemoMaterialModule } from './app/material-module' ;
11
+ import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field' ;
11
12
12
13
import { MaterialDocsExample } from './app/material-docs-example' ;
13
14
15
+ // Default MatFormField appearance to 'fill' as that is the new recommended approach and the
16
+ // `legacy` and `standard` appearances are scheduled for deprecation in version 10.
17
+ // This makes the examples that use MatFormField render the same in StackBlitz as on the docs site.
14
18
@NgModule ( {
15
19
imports : [
16
20
BrowserModule ,
@@ -24,7 +28,9 @@ import {MaterialDocsExample} from './app/material-docs-example';
24
28
entryComponents : [ MaterialDocsExample ] ,
25
29
declarations : [ MaterialDocsExample ] ,
26
30
bootstrap : [ MaterialDocsExample ] ,
27
- providers : [ ]
31
+ providers : [
32
+ { provide : MAT_FORM_FIELD_DEFAULT_OPTIONS , useValue : { appearance : 'fill' } } ,
33
+ ]
28
34
} )
29
35
export class AppModule { }
30
36
You can’t perform that action at this time.
0 commit comments