Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit c3a8736

Browse files
Googlernshahan
authored andcommitted
[a11y] Disabled sliders should not be focusable
PiperOrigin-RevId: 220203012
1 parent 0e3b2ba commit c3a8736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular_components/lib/material_slider/material_slider.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="track"></div>
1111
</div>
1212
<div class="knob" role="slider"
13-
tabindex="0"
13+
[attr.tabindex]="disabled ? -1 : 0"
1414
(keydown)="knobKeyDown($event)"
1515
[style.margin-left.px]="isRtl ? 0 : -8"
1616
[style.margin-right.px]="isRtl ? -8 : 0"

0 commit comments

Comments
 (0)