ARIA Plugins for YUI Widgets
October 2, 2008 at 8:12 am by Todd Kloots | In Accessibility, Development | 4 CommentsFor YUI 2.6, a handful of widgets have examples illustrating how to use new YUI ARIA plugins. These plugins make it easy to use the WAI-ARIA Roles and States to make each widget more interoperable with assistive technologies (AT), such as screen readers, and in turn, more accessible to users with disabilities. For example, the following video illustrates how the YUI ARIA Plugin for Carousel improves the user experience of the new Carousel widget for users of screen readers:
Using the ARIA Plugins
Using the YUI ARIA Plugins is easy. Simply include the source file(s) for the ARIA plugin after the widget source file(s) as indicated on the widget’s landing page. That’s it. Currently, the source files for each plugin are available in the YUI 2.6 package on SourceForge, and can also be downloaded from the YUI blog sandbox. In a future release of YUI, the plugins will be served from our CDN.
Browser Support
All YUI ARIA Plugins require the user’s browser and AT support the WAI-ARIA Roles and States.
Currently only Firefox 3 and
Internet Explorer
8 have support for ARIA and are supported by several screen readers for
Windows that also offer ARIA support. Opera also has support for ARIA as of version 9.5, but
unfortunately isn’t supported by any screen readers. For this reason the YUI ARIA Plugins are only
enabled by default for Firefox 3 and IE 8. To enable the ARIA plugin for other browsers, simply the set
the usearia configuration property to true. For example:
var oMenu = new YAHOO.widget.Menu("menu-1", { usearia: true });
Why Plugins?
Rather than integrate ARIA directly into a widget, we chose to deliver this functionality as a plugin for two main reasons:
- Performance: We’ve got many extremely byte-conscious users. And while we certainly don’t want users opting out of a more accessible interface, we need to be respectful of those developers that need to make tough choices on KB weight.
- The right fit: For most widgets (like Menu) there is an ARIA role that is a perfect match. For some, like Carousel, or AccordionView, there either isn’t a clear match, or there are several different roles that could work depending on the circumstances. For widgets that fall into this category we can offer several different ARIA plugins that meet the desired use case.
Widgets with ARIA Plugin Support
The following table illustrates which YUI widgets currently have an ARIA plugin, along with their corresponding WAI-ARIA Roles.
| Widget | ARIA Role(s) |
|---|---|
| Button | checkbox, radio, radiogroup |
| Carousel | toolbar, button, listbox, option |
| Container | dialog, alertdialog, tooltip |
| Menu | menu, menubar, menuitem |
| TabView | tablist, tab, tabpanel |
Screen Reader Testing
We’d love the community to help us test these plugins, find bugs and suggest enhancements. As mentioned above, each plugin requires AT that supports ARIA. Two of the leading screen readers for Windows, JAWS and Window-Eyes, support ARIA. Free, trial versions of both are available for download, but require Windows be restarted every 40 minutes. For that reason, the open-source NVDA Screen Reader is the best option for developers looking to test the YUI ARIA Plugins as it is both free and provides excellent support for ARIA.
Share and extend: Bookmark with del.icio.us | digg it! | reddit!
4 Comments
Sorry, the comment form is closed at this time.

Copyright © 2006-2012 Yahoo! Inc. All rights reserved. Privacy Policy - Terms of Service
Powered by WordPress on Yahoo! Web Hosting.

[...] ARIA Plugins for YUI Widgets » Yahoo! User Interface Blog (tags: javascript ajax yui) [...]
Pingback by links for 2008-10-03 « Amy G. Dala — October 3, 2008 #
[...] In this talk, delivered at Yahoo! on December 3, 2008, YUI engineer and accessibility specialist Todd Kloots introduces you to ARIA and provides some insights gleaned from his work in bringing ARIA support to a host of YUI widgets. [...]
Pingback by YUI Theater — Todd Kloots: “Developing Accessible Widgets with ARIA” » Yahoo! User Interface Blog — December 8, 2008 #
Great to see YUI not only saying they care about accessiblity, but also doing something very real about it.
Comment by Aaron — January 24, 2009 #
[...] — Todd Kloots: “Developing Accessible Widgets with ARIA”, por Eric Miraglia, 2008-12-08; e ARIA Plugins for YUI Widgets, por Todd Kloots, 2008-10-12; ambos em YUI [...]
Pingback by Blog do Márcio d'Ávila » Aplicações Internet Ricas e Acessíveis — April 8, 2010 #