Skip to content

Commit db4d0f2

Browse files
committed
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular into nrobakova/refactor-keyboardNav-tests
2 parents 17715f8 + 233b454 commit db4d0f2

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

projects/igniteui-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"@angular/forms": "^9.0.0",
7979
"web-animations-js": "^2.3.2"
8080
},
81-
"devDependencies": {
81+
"igxDevDependencies": {
8282
"@igniteui/angular-schematics": "~9.0.500-rc.3"
8383
},
8484
"ng-update": {

projects/igniteui-angular/schematics/ng-add/index.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ describe('ng-add schematics', () => {
108108
runner.runSchematic('ng-add', { normalizeCss: false }, tree);
109109
const pkgJsonData = JSON.parse(tree.readContent('/package.json'));
110110

111-
expect(pkgJsonData.devDependencies['@igniteui/angular-schematics']).toBeTruthy();
111+
const version = require('../../package.json')['igxDevDependencies']['@igniteui/angular-schematics'];
112+
expect(pkgJsonData.devDependencies['@igniteui/angular-schematics']).toBe(version);
112113
expect(pkgJsonData.dependencies['@igniteui/angular-schematics']).toBeFalsy();
113114
});
114115

projects/igniteui-angular/schematics/utils/dependency-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function addDependencies(options: Options): Rule {
6767
}
6868
});
6969

70-
addPackageToPkgJson(tree, schematicsPackage, pkgJson.devDependencies[schematicsPackage], devDependencies);
70+
addPackageToPkgJson(tree, schematicsPackage, pkgJson.igxDevDependencies[schematicsPackage], devDependencies);
7171
return tree;
7272
};
7373
}

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)