From fd4dec1ab53c0a5f77a5d8717a265cee0688a612 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 23 Sep 2022 12:04:18 +0300 Subject: [PATCH] Change material.scss after angular upgrade to version 12 --- library-css/material.scss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/library-css/material.scss b/library-css/material.scss index 0fe1eec..dfe0514 100644 --- a/library-css/material.scss +++ b/library-css/material.scss @@ -1,5 +1,6 @@ +@use '~@angular/material' as mat; @import '../../../../node_modules/@angular/material/theming'; -@include mat-core(); +@include mat.core(); $primary-color: ( 0: #211F7E, contrast: (50: #ffffff) @@ -8,11 +9,11 @@ $secondary-color: ( 0: #3086ED, contrast: (50: #ffffff) ); -$my-app-primary: mat-palette($primary-color, 0); -$my-app-accent: mat-palette($secondary-color, 0); -$my-app-theme: mat-light-theme($my-app-primary, $my-app-accent); +$my-app-primary: mat.define-palette($primary-color, 0); +$my-app-accent: mat.define-palette($secondary-color, 0); +$my-app-theme: mat.define-light-theme($my-app-primary, $my-app-accent); -@include angular-material-theme($my-app-theme); +@include mat.all-component-themes($my-app-theme); .cdk-global-overlay-wrapper, .cdk-overlay-container { z-index: 9999!important;