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

Commit 6491ec3

Browse files
committed
fix(stack-blitz): default to form-field fill appearance
- update README for v9-rc link - remove beta item as we don't use the beta label anymore
1 parent 0b42fc0 commit 6491ec3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
This is the repository for the [Angular Components documentation site](https://material.angular.io/).
44

55
Versions of this site are also available for
6-
- [Beta](https://next.material.angular.io/)
76
- [v5](https://v5.material.angular.io/)
87
- [v6](https://v6.material.angular.io/)
98
- [v7](https://v7.material.angular.io/)
109
- [v8](https://material.angular.io/)
10+
- [v9-rc](https://next.material.angular.io/)
1111

1212
## Contributing
1313
Please open bugs against the Angular Material and CDK components, directives, documentation

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ import {BrowserModule} from '@angular/platform-browser';
88
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
99
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
1010
import {DemoMaterialModule} from './app/material-module';
11+
import {MAT_FORM_FIELD_DEFAULT_OPTIONS} from '@angular/material/form-field';
1112

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

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.
1418
@NgModule({
1519
imports: [
1620
BrowserModule,
@@ -24,7 +28,9 @@ import {MaterialDocsExample} from './app/material-docs-example';
2428
entryComponents: [MaterialDocsExample],
2529
declarations: [MaterialDocsExample],
2630
bootstrap: [MaterialDocsExample],
27-
providers: []
31+
providers: [
32+
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'fill' } },
33+
]
2834
})
2935
export class AppModule {}
3036

0 commit comments

Comments
 (0)