Skip to content

Commit ce5e8e7

Browse files
authored
feat(themes): add theme property to components (#15056)
1 parent 0695993 commit ce5e8e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+59
-10
lines changed

projects/igniteui-angular/src/lib/core/styles/components/action-strip/_action-strip-theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
icon-color: $icon-color,
5959
delete-action: $delete-action,
6060
actions-border-radius: $actions-border-radius,
61+
theme: map.get($schema, '_meta', 'theme'),
6162
_meta: map.merge(if($meta, $meta, ()), (
6263
variant: map.get($schema, '_meta', 'theme')
6364
)),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
icon-color: $icon-color,
5555
border-radius: $border-radius,
5656
size: $size,
57+
theme: map.get($schema, '_meta', 'theme'),
5758
_meta: map.merge(if($meta, $meta, ()), (
5859
variant: map.get($schema, '_meta', 'theme')
5960
)),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
border-radius: $border-radius,
7474
background-color: $background-color,
7575
shadow: $shadow,
76+
theme: map.get($schema, '_meta', 'theme'),
7677
_meta: map.merge(if($meta, $meta, ()), (
7778
variant: map.get($schema, '_meta', 'theme'),
7879
)),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
banner-border-color: $banner-border-color,
5858
banner-illustration-color: $banner-illustration-color,
5959
border-radius: $border-radius,
60+
theme: map.get($schema, '_meta', 'theme'),
6061
_meta: map.merge(if($meta, $meta, ()), (
6162
variant: map.get($schema, '_meta', 'theme')
6263
)),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
label-disabled-color: $label-disabled-color,
108108
border-color: $border-color,
109109
shadow: $shadow,
110+
theme: map.get($schema, '_meta', 'theme'),
110111
_meta: map.merge(if($meta, $meta, ()), (
111112
variant: map.get($schema, '_meta', 'theme'),
112113
theme-variant: map.get($schema, '_meta', 'variant')

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@
208208
shadow: $shadow,
209209
idle-shadow-color: $idle-shadow-color,
210210
selected-shadow-color: $selected-shadow-color,
211+
theme: map.get($schema, '_meta', 'theme'),
211212
_meta: map.merge(if($meta, $meta, ()), (
212213
variant: map.get($schema, '_meta', 'theme')
213214
)),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@
244244
disabled-icon-color: $disabled-icon-color,
245245
disabled-border-color: $disabled-border-color,
246246
size: $size,
247+
theme: map.get($schema, '_meta', 'theme'),
247248
))
248249
));
249250
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@
693693
actions-divider-color: $actions-divider-color,
694694
size: $size,
695695
inner-size: $inner-size,
696+
theme: map.get($schema, '_meta', 'theme'),
696697
_meta: map.merge(if($meta, $meta, ()), (
697698
variant: map.get($schema, '_meta', 'theme')
698699
)),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
actions-text-color: $actions-text-color,
100100
resting-shadow: $resting-shadow,
101101
hover-shadow: $hover-shadow,
102+
theme: map.get($schema, '_meta', 'theme'),
102103
_meta: map.merge(if($meta, $meta, ()), (
103104
variant: map.get($schema, '_meta', 'theme')
104105
)),

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
indicator-active-dot-color: $indicator-active-dot-color,
124124
indicator-active-border-color: $indicator-active-border-color,
125125
indicator-active-hover-dot-color: $indicator-active-hover-dot-color,
126+
theme: map.get($schema, '_meta', 'theme'),
126127
_meta: map.merge(if($meta, $meta, ()), (
127128
variant: map.get($schema, '_meta', 'theme')
128129
)),
@@ -561,17 +562,17 @@
561562
transform: rotate(90deg);
562563
}
563564
}
564-
565+
565566
%igx-carousel-arrow--prev {
566567
inset-block-start: 0;
567568
margin-block-start: rem(16px);
568569
}
569-
570+
570571
%igx-carousel-arrow--next {
571572
inset-block-end: 0;
572573
margin-block-end: rem(16px);
573574
}
574-
575+
575576
%igx-carousel-indicators {
576577
inset-inline-end: 0;
577578
inset-inline-start: unset;
@@ -601,12 +602,12 @@
601602
margin-inline-end: rem(16px);
602603
padding: rem(6px);
603604
}
604-
605+
605606
%igx-carousel-label-indicator {
606607
padding: rem(4px) rem(6px);
607608
margin-inline-end: rem(16px);
608609
}
609-
610+
610611
%igx-carousel-indicators--top {
611612
margin-inline-start: rem(16px);
612613
}

0 commit comments

Comments
 (0)