Skip to content

Commit d2844be

Browse files
committed
fix(lib): upgraded angular material to v12
1 parent 481a3c9 commit d2844be

File tree

3 files changed

+40
-26
lines changed

3 files changed

+40
-26
lines changed

demo/src/material_theme.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1+
@use '~@angular/material' as mat;
12
@import '../node_modules/@angular/material/theming';
23
// Plus imports for other components in your app.
34

45
// Include the common styles for Angular Material. We include this here so that you only
56
// have to load a single css file for Angular Material in your app.
67
// Be sure that you only ever include this mixin once!
7-
@include mat-core();
8+
@include mat.core();
89

910
// Define the palettes for your theme using the Material Design palettes available in palette.scss
1011
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
1112
// hue.
12-
$candy-app-primary: mat-palette($mat-blue);
13-
$candy-app-accent: mat-palette($mat-deep-purple, A200, A100, A400);
13+
$candy-app-primary: mat.define-palette(mat.$blue-palette);
14+
$candy-app-accent: mat.define-palette(mat.$deep-purple-palette, A200, A100, A400);
1415

1516
// The warn palette is optional (defaults to red).
16-
$candy-app-warn: mat-palette($mat-red);
17+
$candy-app-warn: mat.define-palette(mat.$red-palette);
1718

1819
// Create the theme object (a Sass map containing all of the palettes).
19-
$candy-app-theme: mat-light-theme($candy-app-primary, $candy-app-accent, $candy-app-warn);
20+
$candy-app-theme: mat.define-light-theme($candy-app-primary, $candy-app-accent, $candy-app-warn);
2021

2122
// Include theme styles for core and each component used in your app.
2223
// Alternatively, you can import and @include the theme mixins for each component
2324
// that you are using.
24-
@include angular-material-theme($candy-app-theme);
25+
@include mat.all-component-themes($candy-app-theme);

package-lock.json

Lines changed: 31 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
"dependencies": {
3636
"@angular-material-extensions/pages": "^4.0.0",
3737
"@angular/animations": "^12.0.3",
38-
"@angular/cdk": "^11.2.10",
38+
"@angular/cdk": "^12.0.3",
3939
"@angular/common": "^12.0.3",
4040
"@angular/compiler": "^12.0.3",
4141
"@angular/core": "^12.0.3",
4242
"@angular/flex-layout": "^10.0.0-beta.32",
4343
"@angular/forms": "^12.0.3",
44-
"@angular/material": "^11.2.10",
44+
"@angular/material": "^12.0.3",
4545
"@angular/platform-browser": "^12.0.3",
4646
"@angular/platform-browser-dynamic": "^12.0.3",
4747
"@angular/platform-server": "^12.0.3",

0 commit comments

Comments
 (0)