@@ -19,7 +19,8 @@ import { EditorProvider } from '../core/edit-provider';
1919import { IgxSliderThumbComponent } from './thumb/thumb-slider.component' ;
2020import { Subject , merge , Observable , timer , pipe } from 'rxjs' ;
2121import { takeUntil , throttleTime } from 'rxjs/operators' ;
22- import { SliderHandle ,
22+ import {
23+ SliderHandle ,
2324 IgxThumbFromTemplateDirective ,
2425 IgxThumbToTemplateDirective ,
2526 IRangeSliderValue ,
@@ -32,7 +33,7 @@ import { SliderHandle,
3233import { IgxThumbLabelComponent } from './label/thumb-label.component' ;
3334import { IgxTicksComponent } from './ticks/ticks.component' ;
3435import { IgxTickLabelsPipe } from './ticks/tick.pipe' ;
35- import { resizeObservable } from '../core/utils' ;
36+ import { isIE , resizeObservable } from '../core/utils' ;
3637import { IgxDirectionality } from '../services/direction/directionality' ;
3738
3839const noop = ( ) => {
@@ -90,7 +91,7 @@ export class IgxSliderComponent implements
9091 private _primaryTicks = 0 ;
9192 private _secondaryTicks = 0 ;
9293
93- private _labels = new Array < number | string | boolean | null | undefined > ( ) ;
94+ private _labels = new Array < number | string | boolean | null | undefined > ( ) ;
9495 private _type = IgxSliderType . SLIDER ;
9596
9697 private _destroyer$ = new Subject < boolean > ( ) ;
@@ -291,7 +292,7 @@ export class IgxSliderComponent implements
291292 return this . _labels ;
292293 }
293294
294- public set labels ( labels : Array < number | string | boolean | null | undefined > ) {
295+ public set labels ( labels : Array < number | string | boolean | null | undefined > ) {
295296 this . _labels = labels ;
296297
297298 this . _pMax = this . valueToFraction ( this . upperBound , 0 , 1 ) ;
@@ -681,7 +682,7 @@ export class IgxSliderComponent implements
681682 * ```
682683 */
683684 public set secondaryTicks ( val : number ) {
684- if ( val < 1 ) {
685+ if ( val < 1 ) {
685686 return ;
686687 }
687688
@@ -977,7 +978,7 @@ export class IgxSliderComponent implements
977978 */
978979 public ngOnChanges ( changes ) {
979980 if ( changes . minValue && changes . maxValue &&
980- changes . minValue . currentValue < changes . maxValue . currentValue ) {
981+ changes . minValue . currentValue < changes . maxValue . currentValue ) {
981982 this . _maxValue = changes . maxValue . currentValue ;
982983 this . _minValue = changes . minValue . currentValue ;
983984 }
@@ -1026,7 +1027,7 @@ export class IgxSliderComponent implements
10261027 this . _ngZone . runOutsideAngular ( ( ) => {
10271028 resizeObservable ( this . _el . nativeElement ) . pipe (
10281029 throttleTime ( 40 ) ,
1029- takeUntil ( this . _destroyer$ ) ) . subscribe ( ( ) => this . _ngZone . run ( ( ) => {
1030+ takeUntil ( this . _destroyer$ ) ) . subscribe ( ( ) => this . _ngZone . run ( ( ) => {
10301031 this . stepDistance = this . calculateStepDistance ( ) ;
10311032 } ) ) ;
10321033 } ) ;
@@ -1069,7 +1070,7 @@ export class IgxSliderComponent implements
10691070 }
10701071
10711072 /** @hidden */
1072- public getEditElement ( ) {
1073+ public getEditElement ( ) {
10731074 return this . isRange ? this . thumbFrom . nativeElement : this . thumbTo . nativeElement ;
10741075 }
10751076
@@ -1249,7 +1250,7 @@ export class IgxSliderComponent implements
12491250
12501251 if ( fromOffset === toOffset && toOffset < xPointer ) {
12511252 this . thumbTo . nativeElement . focus ( ) ;
1252- } else if ( fromOffset === toOffset && toOffset > xPointer ) {
1253+ } else if ( fromOffset === toOffset && toOffset > xPointer ) {
12531254 this . thumbFrom . nativeElement . focus ( ) ;
12541255 } else if ( match === fromOffset ) {
12551256 this . thumbFrom . nativeElement . focus ( ) ;
@@ -1271,7 +1272,8 @@ export class IgxSliderComponent implements
12711272 : null ;
12721273 }
12731274
1274- const renderCallbackExecution = ! this . continuous ? this . generateTickMarks ( 'white' , interval ) : null ;
1275+ const renderCallbackExecution = ! this . continuous ? this . generateTickMarks (
1276+ isIE ( ) ? 'white' : 'var(--igx-slider-track-step-color, white)' , interval ) : null ;
12751277 this . renderer . setStyle ( this . ticks . nativeElement , 'background' , renderCallbackExecution ) ;
12761278 }
12771279
@@ -1350,7 +1352,7 @@ export class IgxSliderComponent implements
13501352 */
13511353 private normalizeByStep ( value : IRangeSliderValue | number ) {
13521354 if ( this . isRange ) {
1353- this . value = {
1355+ this . value = {
13541356 lower : ( value as IRangeSliderValue ) . lower - ( ( value as IRangeSliderValue ) . lower % this . step ) ,
13551357 upper : ( value as IRangeSliderValue ) . upper - ( ( value as IRangeSliderValue ) . upper % this . step )
13561358 } ;
@@ -1430,7 +1432,7 @@ export class IgxSliderComponent implements
14301432 value = this . validateInitialValue ( value as IRangeSliderValue ) ;
14311433 this . upperValue = ( value as IRangeSliderValue ) . upper ;
14321434 this . lowerValue = ( value as IRangeSliderValue ) . lower ;
1433- res = { lower : this . lowerValue , upper : this . upperValue } ;
1435+ res = { lower : this . lowerValue , upper : this . upperValue } ;
14341436 }
14351437
14361438 if ( triggerChange ) {
0 commit comments