Trên trang này

Trang này chưa có bản tiếng Việt, nội dung bên dưới là bản tiếng Anh. Xem trang tiếng Anh

Slider

What Slider gives you and what your team does.

Conformance

Slider meets WCAG 2.2 level AA when used as described on these pages.

Keyboard

  • Tab moves to each thumb.
  • Arrow keys change the value by one step; Page Up/Down by ten.
  • Home/End go to the minimum or maximum.

What Slider gives you

  • role="slider" with aria-valuenow, min and max on each thumb.
  • A target of at least 24 px around the 16 px thumb.

What your team does

  • Name each thumb (aria-label), such as “Minimum price”.
  • Show the current value in text.

WCAG criteria

Criterion Level How
2.1.1 Keyboard A Arrow keys change the value
2.5.7 Dragging Movements AA Keyboard and click on the track work without dragging
4.1.2 Name, Role, Value A Value is exposed