E-mail List Archives
Re: Synchronic Alternatives for Sliders
From: Bryan Garaventa
Date: Feb 10, 2017 4:30PM
- Next message: Mary Heid: "Re: Word 2016 save as PDF loses Title"
- Previous message: Bossley, Peter A.: "Re: accessibility/usability issue"
- Next message in Thread: office@zweiterblick.at: "Re: Synchronic Alternatives for Sliders"
- Previous message in Thread: Birkir R. Gunnarsson: "Re: Synchronic Alternatives for Sliders"
- View all messages in this Thread
Hi,
Regarding sliders, the only way to make JavaScript enabled drag and drop slider controls accessible at present is by using ARIA as documented in the spec. You can see an example of this here which uses all of these attributes:
http://whatsock.com/tsg/Coding%20Arena/ARIA%20Sliders/Horizontal/demo.htm
Making a simulated slider control keyboard accessible without also including these ARIA attributes and dynamic behavior will result in an inaccessible slider for non-sighted screen reader users regardless.
This is more fully documented in the ARIA Role Matrices table at
http://whatsock.com/training/matrices/#slider
If you are sighted, you can use Visual ARIA to examine this role usage as these ARIA attributes are dynamically updated in realtime, available at
http://whatsock.com/training/matrices/visual-aria.htm
There are some caveats related to such sliders however to be aware of. Drag and drop sliders that use JavaScript like this are not natively accessible in iOS, requiring users to double tap and hold with one finger when VoiceOver is running to pass the key through then drag one finger in order to move the slider. Another option is to add a Decrement and Increment button on the left and right side of the slider so that tapping one or the other will cause the slider to move accordingly on touch screen devices.
The ARIA Slider control referenced above includes this capability if anyone wishes to add it by including event hooks that can be tied to such buttons to programatically update the slider like this. This code is included in the TSG archive at
https://github.com/accdc/tsg
Regarding carousels, Birkir is right, the W3C tutorial is meant to provide the clearest guidance for making carousels accessible, because there is a lot that goes into making this work. I worked with the authors when this was written to help make this as clear as possible.
http://www.w3.org/WAI/tutorials/carousels/
You can see a live example of these concepts at
http://whatsock.com/tsg/Coding%20Arena/Carousels,%20Slideshows,%20and%20Wizards/Carousel%20(Flat%20from%20XML%20with%20Overrides)/demo.htm
The code for which is also included in the above GitHub project for review.
Bryan Garaventa
Accessibility Fellow
SSB BART Group, Inc.
<EMAIL REMOVED>
415.624.2709 (o)
www.SSBBartGroup.com
- Next message: Mary Heid: "Re: Word 2016 save as PDF loses Title"
- Previous message: Bossley, Peter A.: "Re: accessibility/usability issue"
- Next message in Thread: office@zweiterblick.at: "Re: Synchronic Alternatives for Sliders"
- Previous message in Thread: Birkir R. Gunnarsson: "Re: Synchronic Alternatives for Sliders"
- View all messages in this Thread