Skip to content

Commit 56cfc8a

Browse files
committed
chore(*): manual fixes for failed angular migrations
1 parent f892ede commit 56cfc8a

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@use '../../../variables' as *;
2-
@import '~igniteui-dockmanager/dist/collection/styles/igc.themes.css';
2+
@import 'igniteui-dockmanager/dist/collection/styles/igc.themes.css';
33

44
:host {
55
width: 100%;

src/app/theming/angular/angular-sample.component.scss

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
@use '@angular/material' as mat;
22
@use '../../../variables' as *;
3+
@include mat.core();
34

4-
$custom-typography: mat.define-typography-config(
5+
$custom-typography: mat.m2-define-typography-config(
56
$font-family: $material-typeface,
6-
$button: mat.define-typography-level(14px, $font-weight: 600)
7+
$button: mat.m2-define-typography-level(14px, $font-weight: 600)
78
);
89

910
$saturations: (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A700);
@@ -45,21 +46,21 @@ $custom-dark-palette: palette(
4546
$error: #ff134a,
4647
);
4748

48-
$light-palette-primary: mat.define-palette(material-like-palette('primary', $saturations, $igx-light-palette));
49-
$light-palette-accent: mat.define-palette(material-like-palette('secondary', $saturations, $igx-light-palette));
50-
$custom-mat-light-theme: mat.define-light-theme((
49+
$light-palette-primary: mat.m2-define-palette(material-like-palette('primary', $saturations, $igx-light-palette));
50+
$light-palette-accent: mat.m2-define-palette(material-like-palette('secondary', $saturations, $igx-light-palette));
51+
$custom-mat-light-theme: mat.m2-define-light-theme((
5152
color: (
5253
primary: $light-palette-primary,
5354
accent: $light-palette-accent
5455
),
5556
typography: $custom-typography
5657
));
5758

58-
$dark-palette-primary: mat.define-palette(material-like-palette('primary', $saturations, $custom-dark-palette));
59-
$dark-palette-accent: mat.define-palette(material-like-palette('secondary', $saturations, $custom-dark-palette));
60-
$custom-mat-dark-theme: mat.define-dark-theme((
59+
$dark-palette-primary: mat.m2-define-palette(material-like-palette('primary', $saturations, $custom-dark-palette));
60+
$dark-palette-accent: mat.m2-define-palette(material-like-palette('secondary', $saturations, $custom-dark-palette));
61+
$custom-mat-dark-theme: mat.m2-define-dark-theme((
6162
color: (
62-
primary: $dark-palette-primary,
63+
primary: $dark-palette-primary,
6364
accent: $dark-palette-accent
6465
)
6566
));

0 commit comments

Comments
 (0)