Skip to content

Commit 766c7ac

Browse files
authored
feat(slider): implement indigo slider changes (#14274)
1 parent ea73fa3 commit 766c7ac

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

projects/igniteui-angular/src/lib/core/styles/components/slider/_slider-theme.scss

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
border-radius: border-radius(rem(32px));
238238

239239
@if $variant == 'indigo-design' {
240-
border-radius: initial;
240+
border-radius: border-radius(rem(4px));
241241
}
242242
}
243243

@@ -290,6 +290,14 @@
290290
top: 0;
291291
align-items: flex-end;
292292
}
293+
294+
@if $variant == 'indigo-design' {
295+
bottom: rem(3px);
296+
297+
&%igx-slider__ticks--top {
298+
top: rem(3px);
299+
}
300+
}
293301
}
294302

295303
%igx-slider__ticks-group {
@@ -303,7 +311,7 @@
303311
}
304312

305313
&:last-of-type {
306-
margin-inline-start: rem(-1px);
314+
margin-inline-end: rem(-1px);
307315
}
308316
}
309317

@@ -330,6 +338,10 @@
330338
%igx-slider__ticks--tall {
331339
%igx-slider__ticks-label {
332340
top: calc(#{$tick-height--tall} + #{$tick-height});
341+
342+
@if $variant == 'indigo-design' {
343+
top: calc(#{$tick-height--tall} + (#{$tick-height} / 2));
344+
}
333345
}
334346
}
335347

@@ -348,6 +360,10 @@
348360

349361
%igx-slider__ticks-label {
350362
top: calc(#{$tick-height--tall} + #{$tick-height});
363+
364+
@if $variant == 'indigo-design' {
365+
top: calc(#{$tick-height--tall} + (#{$tick-height} / 2));
366+
}
351367
}
352368
}
353369

@@ -535,6 +551,10 @@
535551
display: flex;
536552
top: calc(((#{$thumb-label-height}) + rem(20px)) * -1);
537553
height: $thumb-label-height;
554+
555+
@if $variant == 'indigo-design' {
556+
top: calc(((#{$thumb-label-height}) + rem(18px)) * -1);
557+
}
538558
}
539559

540560
%igx-slider-thumb-label__container {
@@ -561,6 +581,11 @@
561581
border-inline-start: rem(10px) solid transparent;
562582
border-inline-end: rem(10px) solid transparent;
563583
border-top: rem(10px) solid var-get($theme, 'label-background-color');
584+
585+
@if $variant == 'indigo-design' {
586+
top: rem(16px);
587+
border-top: rem(12px) solid var-get($theme, 'label-background-color');
588+
}
564589
}
565590
}
566591

0 commit comments

Comments
 (0)