Skip to content

Commit d436343

Browse files
authored
Merge pull request #6645 from IgniteUI/simeonoff/fix-#6634
fix(themes): app not building with ng build
2 parents 17e39a0 + b4a4f99 commit d436343

File tree

1 file changed

+6
-2
lines changed
  • projects/igniteui-angular/src/lib/core/styles/base/utilities

1 file changed

+6
-2
lines changed

projects/igniteui-angular/src/lib/core/styles/base/utilities/_functions.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
/// @param {Color} $success [#4eb862] - The success color used throughout the application.
298298
/// @param {Color} $warn [#fbb13c] - The warning color used throughout the application.
299299
/// @param {Color} $error [#ff134a] - The error color used throughout the application.
300-
/// @param {Color} $grays [$igx-foreground-color] - The color used for generating the grayscale palette.
300+
/// @param {Color} $grays [#000 | $igx-foreground-color] - The color used for generating the grayscale palette.
301301
/// @param {Color} $surface [#fff] - The color used as a background in components, such as cards, sheets, and menus.
302302
/// @returns {Map} - A map consisting of 74 color variations, including the `primary`, `secondary`, `grays`,
303303
/// `info`, `success`, `warn`, and `error` colors.
@@ -309,12 +309,16 @@
309309
$success: #4eb862,
310310
$warn: #fbb13c,
311311
$error: #ff134a,
312-
$grays: if(global-variable-exists('igx-foreground-color'), $igx-foreground-color, #000),
312+
$grays: #000,
313313
$surface: #fff
314314
) {
315315
$saturations: (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 'A100', 'A200', 'A400', 'A700');
316316
$shades: (50: .02, 100: .04, 200: .08, 300: .12, 400: .26, 500: .38, 600: .54, 700: .62, 800: .74, 900: .87);
317317

318+
@if global-variable-exists('igx-foreground-color') and type-of($igx-foreground-color) == 'color' {
319+
$grays: $igx-foreground-color;
320+
}
321+
318322
$primary-palette: generate-palette($primary, $saturations);
319323
$secondary-palette: generate-palette($secondary, $saturations);
320324
$grayscale-palette: grayscale-palette($grays, $shades);

0 commit comments

Comments
 (0)