You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Color Viewer Slider: Improve high contrast support, touch AT support, and APG code quality guidelines support (w3c#1746)
Makes the following changes to the color viewer slider example:
* Align with current APG code quality guidelines, including using a single object for the color viewer.
* Use SVG graphic elements instead of HTML elements for the visual rendering.
* Use currentColor value for SVG stroke property to support high contrast modes in operating systems.
* Use event.key instead of event.keyCode for responding to keyboard events, which also provides support for iOS and Android screen readers.
* Updated focus styling to have a ring around the thumb.
* Use pointer events instead of mouse events, which provides support for moving the slider thumb with touch.
* Added group role and accessible name for the color viewer widget.
Co-authored-by: Matt King <a11yThinker@gmail.com>
0 commit comments