You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
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.
222
188
223
189
## upgrading to angular v12
224
190
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