diff --git a/third_party/aria-practices/src/content/patterns/slider/examples/slider-color-viewer.html b/third_party/aria-practices/src/content/patterns/slider/examples/slider-color-viewer.html index 5b1b7385340b7..971db185610b7 100644 --- a/third_party/aria-practices/src/content/patterns/slider/examples/slider-color-viewer.html +++ b/third_party/aria-practices/src/content/patterns/slider/examples/slider-color-viewer.html @@ -2,62 +2,13 @@ - Color Viewer Slider Example - - - - - - - - - -
-

Color Viewer Slider Example

- -
-

About This Example

-
-

Warning!

-

- Some users of touch-based assistive technologies may experience difficulty utilizing widgets that implement this slider pattern because the gestures their assistive technology provides for operating sliders may not yet generate the necessary output. - To change the slider value, touch-based assistive technologies need to respond to user gestures for increasing and decreasing the value by synthesizing key events. - This is a new convention that may not be fully implemented by some assistive technologies. - Authors should fully test slider widgets using assistive technologies on devices where touch is a primary input mechanism before considering incorporation into production systems. -

-
- -

- Following is an example of a color viewer that demonstrates the Slider Pattern. - Change the background of the color view box by adjusting the sliders for red, green, and blue values. - The HEX and RGB values of the chosen color are displayed by the color view box. -

-

Similar examples include:

- -
- -
-
-

Example

-
-

Color Viewer

@@ -115,213 +66,5 @@
- -
- -
-

Accessibility Features

- -
- -
-

Keyboard Support

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
KeyFunction
Right ArrowIncreases slider value one step.
Up ArrowIncreases slider value one step.
Left ArrowDecreases slider value one step.
Down ArrowDecreases slider value one step.
Page Up - Increases slider value multiple steps. - In this slider, jumps ten steps. -
Page Down - Decreases slider value multiple steps. - In this slider, jumps ten steps. -
HomeSets slider to its minimum value.
EndSets slider to its maximum value.
-
- -
-

Role, Property, State, and Tabindex Attributes

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RoleAttributeElementUsage
groupdiv -
    -
  • Identifies the div as a group.
  • -
  • The group and its accessible name inform assistive technology users that the three sliders are related to one another and serve the purpose of choosing a color.
  • -
-
aria-labelledby="IDREF"divRefers to the heading element that provides the accessible name for the group.
- slider - - div - -
    -
  • Identifies the element as a slider.
  • -
  • Set on the div that represents the movable thumb because it is the operable element that controls the slider value.
  • -
-
- tabindex="0" - - div - Includes the slider thumb in the page tab sequence.
- aria-valuemax="255" - - div - Specifies the maximum value of the slider.
- aria-valuemin="0" - - div - Specifies the minimum value of the slider.
- aria-valuenow="NUMBER" - - div - Indicates the current value of the slider.
- aria-labelledby="IDREF" - - div - Refers to the element containing the name of the slider.
aria-hidden="true"svg - Removes the SVG elements from the accessibility tree. - Some assistive technologies will describe the SVG elements, unless they are explicitly hidden. -
-
- -
-

Assistive Technology Support

-

Learn how to interpret and use assistive technology support data

- -
- -
-

JavaScript and CSS Source Code

- -
- -
-

HTML Source Code

-

To copy the following HTML code, please open it in CodePen.

- -
- - -
-