Skip to content

Commit b9cff74

Browse files
committed
docs: update README
1 parent 708beeb commit b9cff74

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

README.md

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -184,41 +184,7 @@ $custom-typography: mat.mat-typography-config(
184184
```
185185
186186
## Updating to Angular v15
187-
Angular Material v15 introduces MDC based components, which is basically a re-write for a lot of the available components. If you want to update to Angular v15, you need to update `angular-material-css-vars` to v4+.
188-
189-
With Angular v15, you can decide whether to keep using the legacy components, or to switch to the MDC based components.
190-
191-
### Switch to MDC based components
192-
193-
No further action is required, just import the `init-material-css-vars` mixin like before:
194-
195-
```scss
196-
@use 'angular-material-css-vars/main' as mat-css-main;
197-
198-
@include mat-css-main.init-material-css-vars;
199-
```
200-
201-
### Keep using the legacy components
202-
203-
Please pass the following configuration to the mixin:
204-
205-
```scss
206-
@use 'angular-material-css-vars/main' as mat-css-main;
207-
208-
@include mat-css-main.init-material-css-vars($load-legacy-components: true, $load-mdc-components: false);
209-
```
210-
211-
### Use legacy and MDC based components in parallel
212-
213-
> Warning: this will increase your bundle size significantly
214-
215-
Please pass the following configuration to the mixin:
216-
217-
```scss
218-
@use 'angular-material-css-vars/main' as mat-css-main;
219-
220-
@include mat-css-main.init-material-css-vars($load-legacy-components: true, $load-mdc-components: true);
221-
```
187+
Angular Material v15 introduces MDC based components, which is basically a re-write for a lot of the available components. With `angular-material-css-vars` to v5+, only MDC components are supported.
222188
223189
## upgrading to angular v12
224190
Angular material v12 interoduces some big changes, which leaves you with two options when upgrading to ng12: You can either stay at angular material v11 and angular-material-css-vars v1.2.0 or you can use v2+ which thanks to @pedrojrivera adds full support for the new version.

0 commit comments

Comments
 (0)