Skip to content

Commit 9bdcc1e

Browse files
authored
fix(date-picker): indigo theme elevations (#16085)
1 parent 9e56f70 commit 9bdcc1e

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

projects/igniteui-angular/src/lib/date-picker/themes/_base.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $theme: $material;
1414

1515
display: block;
1616
// TODO move the shadow in the schemas
17-
box-shadow: $border-shadow, elevation(24),;
17+
box-shadow: $border-shadow, elevation(24);
1818
border-radius: var-get($theme, 'border-radius');
1919
background: var-get($theme, 'content-background');
2020
overflow: hidden;
@@ -38,7 +38,6 @@ $theme: $material;
3838

3939
display: flex;
4040
justify-content: flex-end;
41-
4241
gap: rem(8px);
4342

4443
// TODO remove this line after the override (--component-size: var(--ig-size, var(--ig-size-large)) is removed

projects/igniteui-angular/src/lib/date-picker/themes/dark/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@use 'sass:meta';
22
@use 'tokens';
3+
@use 'indigo';
34
@use 'styles/themes/standalone' as *;
45

56
$tokens: meta.module-variables(tokens);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@use 'igniteui-theming/sass/bem/index' as *;
2+
@use 'igniteui-theming/sass/typography/index' as *;
3+
@use 'igniteui-theming/sass/elevations' as *;
4+
@use 'styles/themes/standalone' as *;
5+
@use '../light/tokens' as *;
6+
7+
$_theme: $indigo;
8+
9+
@include themed-block(igx-date-picker, indigo, dark) {
10+
$border-shadow: 0 0 0 rem(1px) var-get($_theme, 'border-color');
11+
box-shadow: $border-shadow, elevation(7);
12+
13+
@include m(dropdown) {
14+
box-shadow: $border-shadow, elevation(2);
15+
}
16+
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
@use 'igniteui-theming/sass/bem/index' as *;
22
@use 'igniteui-theming/sass/typography/index' as *;
3-
@use 'igniteui-theming/sass/animations/index' as *;
43
@use 'igniteui-theming/sass/themes/functions' as *;
4+
@use 'igniteui-theming/sass/elevations' as *;
55
@use 'styles/themes/standalone' as *;
66
@use '../light/tokens' as *;
77

88
$_theme: $indigo;
99

1010
@include themed-block(igx-date-picker, indigo) {
11+
$border-shadow: 0 0 0 rem(1px) var-get($_theme, 'border-color');
12+
box-shadow: $border-shadow, elevation(5);
13+
1114
@include e(actions) {
1215
min-height: sizable(rem(40px), rem(44px), rem(48px));
1316
padding: rem(8px) rem(16px);
1417
}
18+
19+
@include m(dropdown) {
20+
box-shadow: $border-shadow, elevation(3);
21+
}
1522
}

0 commit comments

Comments
 (0)