Skip to content

Commit 88ec14f

Browse files
authored
Merge branch 'master' into tzhelev/fix-6005-master
2 parents 9b46826 + c74ed95 commit 88ec14f

39 files changed

+340
-56
lines changed

projects/igniteui-angular/src/lib/core/styles/components/avatar/_avatar-theme.scss

+7-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@
3434
$image-background: null
3535
) {
3636
$name: 'igx-avatar';
37-
$theme: apply-palette(map-get($schema, $name), $palette);
37+
$theme: ();
38+
39+
@if map-has-key($schema, $name) {
40+
$theme: apply-palette(map-get($schema, $name), $palette);
41+
} @else {
42+
$theme: apply-palette($schema, $palette);
43+
}
3844

3945
@if not($icon-color) and $icon-background {
4046
$icon-color: text-contrast($icon-background);

projects/igniteui-angular/src/lib/core/styles/components/badge/_badge-theme.scss

+9-3
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,16 @@
5454
$disable-border: true
5555
) {
5656
$name: 'igx-badge';
57-
$badge-schema: map-get($schema, $name);
58-
$border-width: if($disable-border == true, 0, rem(1px));
59-
$theme: apply-palette($badge-schema, $palette);
57+
$badge-schema: ();
58+
59+
@if map-has-key($schema, $name) {
60+
$badge-schema: map-get($schema, $name);
61+
} @else {
62+
$badge-schema: $schema;
63+
}
6064

65+
$theme: apply-palette($badge-schema, $palette);
66+
$border-width: if($disable-border == true, 0, rem(1px));
6167
$border-radius: round-borders(
6268
if($border-radius, $border-radius, map-get($badge-schema, 'border-radius')), 0, 11px
6369
);

projects/igniteui-angular/src/lib/core/styles/components/banner/_banner-theme.scss

+9-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@
3434
$banner-illustration-color: null
3535
) {
3636
$name: 'igx-banner';
37-
$theme: apply-palette(map-get($schema, $name), $palette);
37+
$banner-schema: ();
38+
39+
@if map-has-key($schema, $name) {
40+
$banner-schema: map-get($schema, $name);
41+
} @else {
42+
$banner-schema: $schema;
43+
}
44+
45+
$theme: apply-palette($banner-schema, $palette);
3846

3947
@if not($banner-message-color) and $banner-background {
4048
$banner-message-color: text-contrast($banner-background);

projects/igniteui-angular/src/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss

+7-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@
3838
$shadow: null
3939
) {
4040
$name: 'igx-bottom-nav';
41-
$bottom-nav-schema: map-get($schema, $name);
41+
$bottom-nav-schema: ();
42+
43+
@if map-has-key($schema, $name) {
44+
$bottom-nav-schema: map-get($schema, $name);
45+
} @else {
46+
$bottom-nav-schema: $schema;
47+
}
4248

4349
$theme: apply-palette($bottom-nav-schema, $palette);
4450

projects/igniteui-angular/src/lib/core/styles/components/button-group/_button-group-theme.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,14 @@
7070
$item-selected-hover-background: null
7171
) {
7272
$name: 'igx-button-group';
73-
$button-group-schema: map-get($schema, $name);
73+
$button-group-schema: ();
74+
75+
@if map-has-key($schema, $name) {
76+
$button-group-schema: map-get($schema, $name);
77+
} @else {
78+
$button-group-schema: $schema;
79+
}
80+
7481
$theme: apply-palette($button-group-schema, $palette);
7582

7683
$border: 1px solid map-get($theme, 'item-selected-border-color');

projects/igniteui-angular/src/lib/core/styles/components/button/_button-theme.scss

+17-10
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,14 @@
158158
$disabled-background: null
159159
) {
160160
$name: 'igx-button';
161-
$button-schema: map-get($schema, $name);
161+
$button-schema: ();
162+
163+
@if map-has-key($schema, $name) {
164+
$button-schema: map-get($schema, $name);
165+
} @else {
166+
$button-schema: $schema;
167+
}
168+
162169
$theme: apply-palette($button-schema, $palette);
163170

164171
$flat-border-radius: round-borders(
@@ -409,35 +416,35 @@
409416
cosy: rem(6px, 16px) rem(16px, 16px),
410417
compact: rem(3px, 16px) rem(16px, 16px)
411418
);
412-
419+
413420
$button-padding-fluent: (
414421
comfortable: 0 rem(16px, 16px),
415422
cosy: 0 rem(16px, 16px),
416423
compact: 0 rem(16px, 16px)
417424
);
418-
425+
419426
$button-padding: map-get((
420427
material: $button-padding-material,
421428
fluent: $button-padding-fluent
422429
), map-get($theme, variant));
423-
430+
424431
$button--size-material: (
425432
comfortable: rem(36px),
426433
cosy: rem(30px),
427434
compact: rem(24px)
428435
);
429-
436+
430437
$button--size-fluent: (
431438
comfortable: rem(32px),
432439
cosy: rem(28px),
433440
compact: rem(24px)
434441
);
435-
442+
436443
$button-size: map-get((
437444
material: $button--size-material,
438445
fluent: $button--size-fluent
439446
), map-get($theme, variant));
440-
447+
441448

442449
$button-floating-padding: (
443450
comfortable: rem(15px),
@@ -564,13 +571,13 @@
564571
color: --var($theme, 'raised-hover-text-color');
565572
background: --var($theme, 'raised-hover-background');
566573
box-shadow: --var($theme, 'raised-hover-shadow');
567-
568-
574+
575+
569576
%igx-icon-display {
570577
color: --var($theme, 'raised-hover-icon-color')
571578
}
572579
}
573-
580+
574581
&:active {
575582
color: --var($theme, 'raised-focus-text-color');
576583
background: --var($theme, 'raised-focus-background');

projects/igniteui-angular/src/lib/core/styles/components/calendar/_calendar-theme.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,14 @@
112112
$date-disabled-background: null,
113113
) {
114114
$name: 'igx-calendar';
115-
$calendar-schema: map-get($schema, $name);
115+
$calendar-schema: ();
116+
117+
@if map-has-key($schema, $name) {
118+
$calendar-schema: map-get($schema, $name);
119+
} @else {
120+
$calendar-schema: $schema;
121+
}
122+
116123
$theme: apply-palette($calendar-schema, $palette);
117124

118125
$border-radius: round-borders(

projects/igniteui-angular/src/lib/core/styles/components/card/_card-theme.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@
5454
$card-border-color: null
5555
) {
5656
$name: 'igx-card';
57-
$card-schema: map-get($schema, $name);
57+
$card-schema: ();
58+
59+
@if map-has-key($schema, $name) {
60+
$card-schema: map-get($schema, $name);
61+
} @else {
62+
$card-schema: $schema;
63+
}
64+
5865
$theme: apply-palette($card-schema, $palette);
5966

6067
$border-radius: round-borders(

projects/igniteui-angular/src/lib/core/styles/components/carousel/_carousel-theme.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@
5252
$indicator-active-border-color: null,
5353
){
5454
$name: 'igx-carousel';
55-
$carousel-schema: map-get($schema, $name);
55+
$carousel-schema: ();
56+
57+
@if map-has-key($schema, $name) {
58+
$carousel-schema: map-get($schema, $name);
59+
} @else {
60+
$carousel-schema: $schema;
61+
}
62+
5663
$theme: apply-palette($carousel-schema, $palette);
5764

5865
$border-radius: round-borders(

projects/igniteui-angular/src/lib/core/styles/components/checkbox/_checkbox-theme.scss

+8-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@
4343
$border-radius-ripple: null
4444
) {
4545
$name: 'igx-checkbox';
46-
$checkbox-schema: map-get($schema, $name);
46+
$checkbox-schema: ();
47+
48+
@if map-has-key($schema, $name) {
49+
$checkbox-schema: map-get($schema, $name);
50+
} @else {
51+
$checkbox-schema: $schema;
52+
}
53+
4754
$theme: apply-palette($checkbox-schema, $palette);
4855

4956
$border-radius: round-borders(
@@ -54,7 +61,6 @@
5461
if($border-radius-ripple, $border-radius-ripple, map-get($checkbox-schema, 'border-radius-ripple')), 0, 24px
5562
);
5663

57-
5864
@return extend($theme, (
5965
name: $name,
6066
palette: $palette,

projects/igniteui-angular/src/lib/core/styles/components/chip/_chip-theme.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,14 @@
7878
$remove-icon-color-focus: null,
7979
) {
8080
$name: 'igx-chip';
81-
$chip-schema: map-get($schema, $name);
81+
$chip-schema: ();
82+
83+
@if map-has-key($schema, $name) {
84+
$chip-schema: map-get($schema, $name);
85+
} @else {
86+
$chip-schema: $schema;
87+
}
88+
8289
$theme: apply-palette($chip-schema, $palette);
8390

8491
$border-radius: round-borders(

projects/igniteui-angular/src/lib/core/styles/components/column-hiding/_column-hiding-theme.scss

+9-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@
2929
$background-color: null
3030
) {
3131
$name: 'igx-column-hiding';
32-
$theme: apply-palette(map-get($schema, $name), $palette);
32+
$column-hiding-schema: ();
33+
34+
@if map-has-key($schema, $name) {
35+
$column-hiding-schema: map-get($schema, $name);
36+
} @else {
37+
$column-hiding-schema: $schema;
38+
}
39+
40+
$theme: apply-palette($column-hiding-schema, $palette);
3341

3442
@if not($title-color) and $background-color {
3543
$title-color: text-contrast($background-color);

projects/igniteui-angular/src/lib/core/styles/components/combo/_combo-theme.scss

+9-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@
2323
$empty-list-background: null
2424
) {
2525
$name: 'igx-combo';
26-
$theme: apply-palette(map-get($schema, $name), $palette);
26+
$combo-schema: ();
27+
28+
@if map-has-key($schema, $name) {
29+
$combo-schema: map-get($schema, $name);
30+
} @else {
31+
$combo-schema: $schema;
32+
}
33+
34+
$theme: apply-palette($combo-schema, $palette);
2735

2836
@return extend($theme, (
2937
name: $name,

projects/igniteui-angular/src/lib/core/styles/components/dialog/_dialog-theme.scss

+12-5
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@
4141
$shadow: null
4242
) {
4343
$name: 'igx-dialog';
44-
$dialog-schema: map-get($schema, $name);
44+
$dialog-schema: ();
45+
46+
@if map-has-key($schema, $name) {
47+
$dialog-schema: map-get($schema, $name);
48+
} @else {
49+
$dialog-schema: $schema;
50+
}
51+
4552
$theme: apply-palette($dialog-schema, $palette);
4653

4754
$border-radius: round-borders(
@@ -87,22 +94,22 @@
8794
material: rem(280px),
8895
fluent: rem(288px)
8996
), map-get($theme, variant));
90-
97+
9198
$dialog-title-padding: map-get((
9299
material: rem(24px) rem(24px) rem(12px) rem(24px),
93100
fluent: rem(16px) rem(24px) rem(24px) rem(24px)
94101
), map-get($theme, variant));
95-
102+
96103
$dialog-message-padding: map-get((
97104
material: rem(12px) rem(24px),
98105
fluent: 0 rem(24px) rem(20px) rem(24px)
99106
), map-get($theme, variant));
100-
107+
101108
$dialog-actions-padding: map-get((
102109
material: rem(8px),
103110
fluent: 0 rem(24px) rem(24px) rem(24px)
104111
), map-get($theme, variant));
105-
112+
106113
%igx-dialog-display {
107114
outline-style: none;
108115
}

projects/igniteui-angular/src/lib/core/styles/components/divider/_divider-theme.scss

+9-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@
2323
$color: null
2424
) {
2525
$name: 'igx-divider';
26-
$theme: apply-palette(map-get($schema, $name), $palette);
26+
$divider-schema: ();
27+
28+
@if map-has-key($schema, $name) {
29+
$divider-schema: map-get($schema, $name);
30+
} @else {
31+
$divider-schema: $schema;
32+
}
33+
34+
$theme: apply-palette($divider-schema, $palette);
2735

2836
@return extend($theme, (
2937
name: $name,

projects/igniteui-angular/src/lib/core/styles/components/drop-down/_drop-down-theme.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,14 @@
7575
$shadow: null
7676
) {
7777
$name: 'igx-drop-down';
78-
$drop-down-schema: map-get($schema, 'igx-drop-down');
78+
$drop-down-schema: ();
79+
80+
@if map-has-key($schema, $name) {
81+
$drop-down-schema: map-get($schema, $name);
82+
} @else {
83+
$drop-down-schema: $schema;
84+
}
85+
7986
$theme: apply-palette($drop-down-schema, $palette);
8087

8188
$border-radius: round-borders(

projects/igniteui-angular/src/lib/core/styles/components/expansion-panel/_expansion-panel-theme.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@
4444
$disabled-color: null
4545
) {
4646
$name: 'igx-expansion-panel';
47-
$expansion-panel-schema: map-get($schema, $name);
47+
$expansion-panel-schema: ();
48+
49+
@if map-has-key($schema, $name) {
50+
$expansion-panel-schema: map-get($schema, $name);
51+
} @else {
52+
$expansion-panel-schema: $schema;
53+
}
54+
4855
$theme: apply-palette($expansion-panel-schema, $palette);
4956

5057
$border-radius: round-borders(

projects/igniteui-angular/src/lib/core/styles/components/grid-summary/_grid-summary-theme.scss

+9-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,15 @@
4646
$label-hover-color: null
4747
) {
4848
$name: 'igx-grid-summary';
49-
$theme: apply-palette(map-get($schema, $name), $palette);
49+
$grid-summary-schema: ();
50+
51+
@if map-has-key($schema, $name) {
52+
$grid-summary-schema: map-get($schema, $name);
53+
} @else {
54+
$grid-summary-schema: $schema;
55+
}
56+
57+
$theme: apply-palette($grid-summary-schema, $palette);
5058

5159
@if not($result-color) and $background-color {
5260
$result-color: text-contrast($background-color);

0 commit comments

Comments
 (0)