diff --git a/src/app/scheduling/calendar/calendar-sample-3/calendar-sample-3.component.scss b/src/app/scheduling/calendar/calendar-sample-3/calendar-sample-3.component.scss
index 4163b6d1f1..26f9f607ca 100644
--- a/src/app/scheduling/calendar/calendar-sample-3/calendar-sample-3.component.scss
+++ b/src/app/scheduling/calendar/calendar-sample-3/calendar-sample-3.component.scss
@@ -1,4 +1,6 @@
-.igx-calendar{
+.igx-calendar {
+ --ig-size: 2;
+
box-shadow: 0 1px 3px 0 rgba(0,0,0,.26),
0 1px 1px 0 rgba(0,0,0,.12),
0 2px 1px -1px rgba(0,0,0,.08);
@@ -7,11 +9,12 @@
:host {
display: flex;
width: 100%;
+ gap: 16px;
flex-flow: row wrap;
}
button {
- margin: 8px 0px;
+ margin: 8px 0;
}
.calendar-wrapper {
@@ -20,10 +23,10 @@
}
.calendar-section {
- height: 383px;
+ height: 336px;
}
- .selected-data-area{
+ .selected-data-area {
overflow-y: auto;
max-height: 500px;
width: 100%;
diff --git a/src/app/scheduling/calendar/calendar-sample-4/calendar-sample-4.component.scss b/src/app/scheduling/calendar/calendar-sample-4/calendar-sample-4.component.scss
index 1959d5ef84..462c462c26 100644
--- a/src/app/scheduling/calendar/calendar-sample-4/calendar-sample-4.component.scss
+++ b/src/app/scheduling/calendar/calendar-sample-4/calendar-sample-4.component.scss
@@ -10,6 +10,8 @@ $border-color: color($color: gray, $variant: 300);
margin: 8px;
}
-.igx-calendar{
+.igx-calendar {
+ --ig-size: 2;
+
border-radius: 4px;
}
diff --git a/src/app/scheduling/calendar/calendar-sample-5/calendar-sample-5.component.scss b/src/app/scheduling/calendar/calendar-sample-5/calendar-sample-5.component.scss
index 22d92d57e1..ff03d1741b 100644
--- a/src/app/scheduling/calendar/calendar-sample-5/calendar-sample-5.component.scss
+++ b/src/app/scheduling/calendar/calendar-sample-5/calendar-sample-5.component.scss
@@ -10,6 +10,8 @@ $border-color: color($color: gray, $variant: 300);
margin: 8px;
}
-.igx-calendar{
+.igx-calendar {
+ --ig-size: 2;
+
border-radius: 4px;
}
diff --git a/src/app/scheduling/calendar/calendar-sample-6/calendar-sample-6.component.scss b/src/app/scheduling/calendar/calendar-sample-6/calendar-sample-6.component.scss
index 7cc4508fea..ab47e6b69a 100644
--- a/src/app/scheduling/calendar/calendar-sample-6/calendar-sample-6.component.scss
+++ b/src/app/scheduling/calendar/calendar-sample-6/calendar-sample-6.component.scss
@@ -7,6 +7,10 @@
0 2px 1px -1px rgba(0,0,0,.08);
}
+.igx-calendar {
+ --ig-size: 2;
+}
+
.info {
display: flex;
justify-content: center;
diff --git a/src/app/scheduling/calendar/calendar-sample-7/calendar-sample-7.component.scss b/src/app/scheduling/calendar/calendar-sample-7/calendar-sample-7.component.scss
index 667e5027ec..49eeea0857 100644
--- a/src/app/scheduling/calendar/calendar-sample-7/calendar-sample-7.component.scss
+++ b/src/app/scheduling/calendar/calendar-sample-7/calendar-sample-7.component.scss
@@ -1,4 +1,6 @@
.calendar-wrapper {
+ --ig-size: 2;
+
max-width: 700px;
min-width: 200px;
margin: 8px;
diff --git a/src/app/scheduling/calendar/calendar-sample-8/calendar-sample-8.component.scss b/src/app/scheduling/calendar/calendar-sample-8/calendar-sample-8.component.scss
index 3fd9fc92d3..708dac2e19 100644
--- a/src/app/scheduling/calendar/calendar-sample-8/calendar-sample-8.component.scss
+++ b/src/app/scheduling/calendar/calendar-sample-8/calendar-sample-8.component.scss
@@ -1,4 +1,6 @@
.calendar-wrapper {
+ --ig-size: 2;
+
max-width: 400px;
min-width: 200px;
margin: 8px;
diff --git a/src/app/scheduling/calendar/calendar-styling-sample/calendar-styling-sample.component.scss b/src/app/scheduling/calendar/calendar-styling-sample/calendar-styling-sample.component.scss
index 635b723613..9e2b430867 100644
--- a/src/app/scheduling/calendar/calendar-styling-sample/calendar-styling-sample.component.scss
+++ b/src/app/scheduling/calendar/calendar-styling-sample/calendar-styling-sample.component.scss
@@ -7,6 +7,8 @@
}
.igx-calendar {
+ --ig-size: 2;
+
box-shadow: elevation(4);
}
diff --git a/src/app/scheduling/calendar/calendar-years-view/calendar-years-view.component.scss b/src/app/scheduling/calendar/calendar-years-view/calendar-years-view.component.scss
index b2785e459c..afaa03b2d8 100644
--- a/src/app/scheduling/calendar/calendar-years-view/calendar-years-view.component.scss
+++ b/src/app/scheduling/calendar/calendar-years-view/calendar-years-view.component.scss
@@ -3,3 +3,9 @@
min-width: 200px;
margin: 8px;
}
+
+:host {
+ igx-years-view {
+ --ig-size: 2;
+ }
+}
diff --git a/src/app/scheduling/calendar/multiview/multiview.component.scss b/src/app/scheduling/calendar/multiview/multiview.component.scss
index 8a1827773d..a98129cb3d 100644
--- a/src/app/scheduling/calendar/multiview/multiview.component.scss
+++ b/src/app/scheduling/calendar/multiview/multiview.component.scss
@@ -8,6 +8,8 @@
}
.igx-calendar {
+ --ig-size: 2;
+
border-radius: 0;
}
diff --git a/src/app/scheduling/monthpicker/monthpicker-sample-1/monthpicker-sample-1.component.scss b/src/app/scheduling/monthpicker/monthpicker-sample-1/monthpicker-sample-1.component.scss
index dec71ee7d7..946ab499e0 100644
--- a/src/app/scheduling/monthpicker/monthpicker-sample-1/monthpicker-sample-1.component.scss
+++ b/src/app/scheduling/monthpicker/monthpicker-sample-1/monthpicker-sample-1.component.scss
@@ -2,3 +2,7 @@ igx-card {
max-width: 400px;
margin: 20px;
}
+
+igx-month-picker {
+ --ig-size: 2;
+}
diff --git a/src/app/scheduling/monthpicker/monthpicker-sample-3/monthpicker-sample-3.component.scss b/src/app/scheduling/monthpicker/monthpicker-sample-3/monthpicker-sample-3.component.scss
index 01d5228f65..0d10259122 100644
--- a/src/app/scheduling/monthpicker/monthpicker-sample-3/monthpicker-sample-3.component.scss
+++ b/src/app/scheduling/monthpicker/monthpicker-sample-3/monthpicker-sample-3.component.scss
@@ -1,3 +1,7 @@
.card-wrapper {
max-width: 400px;
}
+
+igx-month-picker {
+ --ig-size: 2;
+}
diff --git a/src/app/scheduling/monthpicker/monthpicker-styling/monthpicker-styling.component.scss b/src/app/scheduling/monthpicker/monthpicker-styling/monthpicker-styling.component.scss
index 08f6b8e639..17875ce887 100644
--- a/src/app/scheduling/monthpicker/monthpicker-styling/monthpicker-styling.component.scss
+++ b/src/app/scheduling/monthpicker/monthpicker-styling/monthpicker-styling.component.scss
@@ -1,22 +1,26 @@
@use '../../../../variables' as *;
igx-month-picker {
- max-width: 400px;
- margin: 20px;
+ --ig-size: 2;
+
+ max-width: 400px;
}
$my-calendar-theme: calendar-theme(
- $border-radius: 15px,
- $content-background: #011627,
- $picker-background: #011627,
- $month-current-foreground: #ECAA53,
- $month-hover-background: #ECAA53,
- $year-current-foreground: #ECAA53,
- $year-hover-foreground: #D37B08,
- $navigation-color: #ECAA53,
- $picker-hover-foreground: #D37B08,
- $navigation-hover-color: #D37B08,
- $picker-foreground: #ECAA53
+ $border-radius: 15px,
+ $content-background: #011627,
+ $picker-background: #011627,
+
+ $month-current-foreground: #ecaa53,
+ $month-hover-background: #ecaa53,
+
+ $year-current-foreground: #ecaa53,
+ $year-hover-background: #ecaa53,
+
+ $navigation-color: #ecaa53,
+ $picker-hover-foreground: #d37b08,
+ $navigation-hover-color: #d37b08,
+ $picker-foreground: #ecaa53
);
:host ::ng-deep {
diff --git a/src/app/theming/angular/angular-sample.component.scss b/src/app/theming/angular/angular-sample.component.scss
index f22c1d5316..45c70df0c3 100644
--- a/src/app/theming/angular/angular-sample.component.scss
+++ b/src/app/theming/angular/angular-sample.component.scss
@@ -1,9 +1,10 @@
@use '@angular/material' as mat;
@use '../../../variables' as *;
+@include mat.core();
-$custom-typography: mat.define-typography-config(
+$custom-typography: mat.m2-define-typography-config(
$font-family: $material-typeface,
- $button: mat.define-typography-level(14px, $font-weight: 600)
+ $button: mat.m2-define-typography-level(14px, $font-weight: 600)
);
$saturations: (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A700);
@@ -45,9 +46,9 @@ $custom-dark-palette: palette(
$error: #ff134a,
);
-$light-palette-primary: mat.define-palette(material-like-palette('primary', $saturations, $igx-light-palette));
-$light-palette-accent: mat.define-palette(material-like-palette('secondary', $saturations, $igx-light-palette));
-$custom-mat-light-theme: mat.define-light-theme((
+$light-palette-primary: mat.m2-define-palette(material-like-palette('primary', $saturations, $igx-light-palette));
+$light-palette-accent: mat.m2-define-palette(material-like-palette('secondary', $saturations, $igx-light-palette));
+$custom-mat-light-theme: mat.m2-define-light-theme((
color: (
primary: $light-palette-primary,
accent: $light-palette-accent
@@ -55,11 +56,11 @@ $custom-mat-light-theme: mat.define-light-theme((
typography: $custom-typography
));
-$dark-palette-primary: mat.define-palette(material-like-palette('primary', $saturations, $custom-dark-palette));
-$dark-palette-accent: mat.define-palette(material-like-palette('secondary', $saturations, $custom-dark-palette));
-$custom-mat-dark-theme: mat.define-dark-theme((
+$dark-palette-primary: mat.m2-define-palette(material-like-palette('primary', $saturations, $custom-dark-palette));
+$dark-palette-accent: mat.m2-define-palette(material-like-palette('secondary', $saturations, $custom-dark-palette));
+$custom-mat-dark-theme: mat.m2-define-dark-theme((
color: (
- primary: $dark-palette-primary,
+ primary: $dark-palette-primary,
accent: $dark-palette-accent
)
));
diff --git a/src/app/theming/styles/dark-theme.scss b/src/app/theming/styles/dark-theme.scss
index 531df92f90..a50c13786d 100644
--- a/src/app/theming/styles/dark-theme.scss
+++ b/src/app/theming/styles/dark-theme.scss
@@ -1,40 +1,40 @@
@use 'igniteui-angular/theming' as *;
// Import grid component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/grid/grid-component';
-@use '~igniteui-angular/lib/core/styles/components/grid/grid-theme';
+@use 'igniteui-angular/lib/core/styles/components/grid/grid-component';
+@use 'igniteui-angular/lib/core/styles/components/grid/grid-theme';
// Import paginator component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/paginator/paginator-component';
-@use '~igniteui-angular/lib/core/styles/components/paginator/paginator-theme';
+@use 'igniteui-angular/lib/core/styles/components/paginator/paginator-component';
+@use 'igniteui-angular/lib/core/styles/components/paginator/paginator-theme';
// Import dialog-group component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/dialog/dialog-component';
-@use '~igniteui-angular/lib/core/styles/components/dialog/dialog-theme';
+@use 'igniteui-angular/lib/core/styles/components/dialog/dialog-component';
+@use 'igniteui-angular/lib/core/styles/components/dialog/dialog-theme';
// Import input-group component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/input/input-group-component';
-@use '~igniteui-angular/lib/core/styles/components/input/input-group-theme';
+@use 'igniteui-angular/lib/core/styles/components/input/input-group-component';
+@use 'igniteui-angular/lib/core/styles/components/input/input-group-theme';
// Import grid snackbar and theme styles
-@use '~igniteui-angular/lib/core/styles/components/snackbar/snackbar-component';
-@use '~igniteui-angular/lib/core/styles/components/snackbar/snackbar-theme';
+@use 'igniteui-angular/lib/core/styles/components/snackbar/snackbar-component';
+@use 'igniteui-angular/lib/core/styles/components/snackbar/snackbar-theme';
// Import button component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/button/button-component';
-@use '~igniteui-angular/lib/core/styles/components/button/button-theme';
+@use 'igniteui-angular/lib/core/styles/components/button/button-component';
+@use 'igniteui-angular/lib/core/styles/components/button/button-theme';
// Import button-group component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/button-group/button-group-component';
-@use '~igniteui-angular/lib/core/styles/components/button-group/button-group-theme';
+@use 'igniteui-angular/lib/core/styles/components/button-group/button-group-component';
+@use 'igniteui-angular/lib/core/styles/components/button-group/button-group-theme';
// Import chip component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/chip/chip-component';
-@use '~igniteui-angular/lib/core/styles/components/chip/chip-theme';
+@use 'igniteui-angular/lib/core/styles/components/chip/chip-component';
+@use 'igniteui-angular/lib/core/styles/components/chip/chip-theme';
// Import badge component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/badge/badge-component';
-@use '~igniteui-angular/lib/core/styles/components/badge/badge-theme';
+@use 'igniteui-angular/lib/core/styles/components/badge/badge-component';
+@use 'igniteui-angular/lib/core/styles/components/badge/badge-theme';
// Define the primary colors
$dark-color: #282828;
diff --git a/src/app/theming/styles/themes.scss b/src/app/theming/styles/themes.scss
index 599d8dfd21..46435eac84 100644
--- a/src/app/theming/styles/themes.scss
+++ b/src/app/theming/styles/themes.scss
@@ -1,56 +1,56 @@
@use 'schemas';
// Import grid component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/grid/grid-component';
-@use '~igniteui-angular/lib/core/styles//components/grid/grid-theme';
+@use 'igniteui-angular/lib/core/styles/components/grid/grid-component';
+@use 'igniteui-angular/lib/core/styles//components/grid/grid-theme';
// Import grid snackbar and theme styles
-@use '~igniteui-angular/lib/core/styles//components/snackbar/snackbar-component';
-@use '~igniteui-angular/lib/core/styles//components/snackbar/snackbar-theme';
+@use 'igniteui-angular/lib/core/styles//components/snackbar/snackbar-component';
+@use 'igniteui-angular/lib/core/styles//components/snackbar/snackbar-theme';
// Import input-group component and theme styles
-@use '~igniteui-angular/lib/core/styles//components/input/input-group-component';
-@use '~igniteui-angular/lib/core/styles//components/input/input-group-theme';
+@use 'igniteui-angular/lib/core/styles//components/input/input-group-component';
+@use 'igniteui-angular/lib/core/styles//components/input/input-group-theme';
// Import dialog-group component and theme styles
-@use '~igniteui-angular/lib/core/styles//components/dialog/dialog-component';
-@use '~igniteui-angular/lib/core/styles//components/dialog/dialog-theme';
+@use 'igniteui-angular/lib/core/styles//components/dialog/dialog-component';
+@use 'igniteui-angular/lib/core/styles//components/dialog/dialog-theme';
// Import paginator component and theme styles
-@use '~igniteui-angular/lib/core/styles//components/paginator/paginator-component';
-@use '~igniteui-angular/lib/core/styles//components/paginator/paginator-theme';
+@use 'igniteui-angular/lib/core/styles//components/paginator/paginator-component';
+@use 'igniteui-angular/lib/core/styles//components/paginator/paginator-theme';
// Import button component and theme styles
-@use '~igniteui-angular/lib/core/styles//components/button/button-component';
-@use '~igniteui-angular/lib/core/styles//components/button/button-theme';
+@use 'igniteui-angular/lib/core/styles//components/button/button-component';
+@use 'igniteui-angular/lib/core/styles//components/button/button-theme';
// Import button-group component and theme styles
-@use '~igniteui-angular/lib/core/styles//components/button-group/button-group-component';
-@use '~igniteui-angular/lib/core/styles//components/button-group/button-group-theme';
+@use 'igniteui-angular/lib/core/styles//components/button-group/button-group-component';
+@use 'igniteui-angular/lib/core/styles//components/button-group/button-group-theme';
// Import drop-down component and theme styles
-@use '~igniteui-angular/lib/core/styles//components/drop-down/drop-down-component';
-@use '~igniteui-angular/lib/core/styles//components/drop-down/drop-down-theme';
+@use 'igniteui-angular/lib/core/styles//components/drop-down/drop-down-component';
+@use 'igniteui-angular/lib/core/styles//components/drop-down/drop-down-theme';
// Import calendar component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/calendar/calendar-component';
-@use '~igniteui-angular/lib/core/styles/components/calendar/calendar-theme';
+@use 'igniteui-angular/lib/core/styles/components/calendar/calendar-component';
+@use 'igniteui-angular/lib/core/styles/components/calendar/calendar-theme';
// Import chip component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/chip/chip-component';
-@use '~igniteui-angular/lib/core/styles/components/chip/chip-theme';
+@use 'igniteui-angular/lib/core/styles/components/chip/chip-component';
+@use 'igniteui-angular/lib/core/styles/components/chip/chip-theme';
// Import icon component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/icon/icon-component';
-@use '~igniteui-angular/lib/core/styles/components/icon/icon-theme';
+@use 'igniteui-angular/lib/core/styles/components/icon/icon-component';
+@use 'igniteui-angular/lib/core/styles/components/icon/icon-theme';
// Import drop-down component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/drop-down/drop-down-component';
-@use '~igniteui-angular/lib/core/styles/components/drop-down/drop-down-theme';
+@use 'igniteui-angular/lib/core/styles/components/drop-down/drop-down-component';
+@use 'igniteui-angular/lib/core/styles/components/drop-down/drop-down-theme';
// Import badge component and theme styles
-@use '~igniteui-angular/lib/core/styles/components/badge/badge-component';
-@use '~igniteui-angular/lib/core/styles/components/badge/badge-theme';
+@use 'igniteui-angular/lib/core/styles/components/badge/badge-component';
+@use 'igniteui-angular/lib/core/styles/components/badge/badge-theme';
// Define the primary colors
diff --git a/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.scss b/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.scss
index ba503c0f50..687d5c02cf 100644
--- a/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.scss
+++ b/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.scss
@@ -13,50 +13,54 @@ $light-gray: #999;
$inactive-color: #9b7829;
$dark-paginator: paginator-theme(
- $text-color: $my-secondary,
- $background-color: $my-primary,
- $border-color: $my-secondary
+ $text-color: $my-secondary,
+ $background-color: $my-primary,
+ $border-color: $my-secondary
);
-$dark-button: button-theme(
- $foreground: $my-secondary,
- $hover-foreground: $dark-gray,
- $hover-background: $my-secondary,
- $focus-foreground: $dark-gray,
- $focus-background: $my-secondary,
- $border-color: $my-secondary,
- $hover-border-color: $my-secondary,
- $focus-border-color: $my-secondary,
- $disabled-foreground: $inactive-color
+$dark-button: icon-button-theme(
+ $foreground: $my-secondary,
+ $hover-foreground: $dark-gray,
+ $hover-background: $my-secondary,
+ $focus-foreground: $dark-gray,
+ $focus-background: $my-secondary,
+ $border-color: $my-secondary,
+ $focus-border-color: $my-secondary,
+ $disabled-foreground: $inactive-color
);
$dark-select: select-theme(
- $toggle-button-background: $my-primary,
- $toggle-button-foreground: $inactive-color,
+ $toggle-button-background: $my-primary,
+ $toggle-button-foreground: $inactive-color,
+ $toggle-button-foreground-filled: $inactive-color,
+ $toggle-button-foreground-focus: $inactive-color,
+ $toggle-button-background-focus--border: $my-primary,
);
$dark-input-group: input-group-theme(
- $filled-text-color: $my-secondary,
- $idle-text-color: $my-secondary,
- $focused-text-color: $my-secondary,
- $border-color: darken($inactive-color, 10%),
- $focused-border-color: $my-secondary,
- $input-suffix-color: $my-secondary,
+ $filled-text-color: $my-secondary,
+ $idle-text-color: $my-secondary,
+ $filled-text-hover-color: $my-secondary,
+ $focused-text-color: $my-secondary,
+ $border-color: darken($inactive-color, 10%),
+ $focused-border-color: $my-secondary,
+ $input-suffix-color: $my-secondary,
);
$dark-drop-down-theme: drop-down-theme(
- $background-color: $my-primary,
- $item-text-color: $my-secondary,
- $selected-item-background: $my-secondary,
- $selected-item-text-color: $dark-gray,
- $focused-item-background: $my-secondary,
- $focused-item-text-color: $dark-gray,
- $selected-focus-item-background: $my-secondary,
- $selected-focus-item-text-color: $dark-gray,
- $selected-hover-item-background: $my-secondary,
- $selected-hover-item-text-color: $dark-gray
+ $background-color: $my-primary,
+ $item-text-color: $my-secondary,
+ $selected-item-background: $my-secondary,
+ $selected-item-text-color: $dark-gray,
+ $focused-item-background: $my-secondary,
+ $focused-item-text-color: $dark-gray,
+ $selected-focus-item-background: $my-secondary,
+ $selected-focus-item-text-color: $dark-gray,
+ $selected-hover-item-background: $my-secondary,
+ $selected-hover-item-text-color: $dark-gray
);
+
:host {
::ng-deep {
@include css-vars($dark-drop-down-theme);
diff --git a/src/styles.scss b/src/styles.scss
index 82df00bb3a..0dc0c0019e 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -2,6 +2,13 @@
@use 'variables' as *;
@use 'app-layout';
+
+// Specifies large size for all components to match the previous defaults
+// This may not be needed for your project. Please consult https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/update-guide for more details.
+:root {
+ --ig-size: var(--ig-size-large);
+}
+
/* autoprefixer grid: on */
html,
body {
diff --git a/tsconfig.json b/tsconfig.json
index 8fa790392e..e2f0c92348 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -4,12 +4,12 @@
"importHelpers": true,
"module": "ES2022",
"outDir": "./dist/out-tsc",
+ "esModuleInterop": true,
"sourceMap": false,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
- "downlevelIteration": true,
"target": "ES2022",
"typeRoots": [
"node_modules/@types"