Skip to content

Commit ff24fb8

Browse files
fix(slider): revert tabindex value
1 parent c890a3a commit ff24fb8

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

projects/igniteui-angular/src/lib/slider/slider.component.spec.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,17 +1905,6 @@ describe('IgxSlider', () => {
19051905
expect(thumbFrom.getAttribute('aria-labelledby')).toBe('slider-label-from');
19061906
expect(thumbTo.getAttribute('aria-labelledby')).toBe('slider-label-to');
19071907
});
1908-
1909-
it('should set correct tabindex on thumbs', () => {
1910-
fixture = TestBed.createComponent(RangeSliderTestComponent);
1911-
fixture.detectChanges();
1912-
1913-
const thumbFrom = fixture.debugElement.query(By.css('.igx-slider-thumb-from')).nativeElement;
1914-
const thumbTo = fixture.debugElement.query(By.css('.igx-slider-thumb-to')).nativeElement;
1915-
1916-
expect(thumbFrom.getAttribute('tabindex')).toBe('1');
1917-
expect(thumbTo.getAttribute('tabindex')).toBe('1');
1918-
});
19191908
});
19201909

19211910
const verifySecondaryTicsLabelsAreHidden = (ticks, hidden) => {

projects/igniteui-angular/src/lib/slider/thumb/thumb-slider.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class IgxSliderThumbComponent implements OnInit, OnDestroy {
7373
public hoverChange = new EventEmitter<boolean>();
7474

7575
@HostBinding('attr.tabindex')
76-
public tabindex = 1;
76+
public tabindex = 0;
7777

7878
@HostBinding('attr.z-index')
7979
public zIndex = 0;

0 commit comments

Comments
 (0)