Making accessibility simpler with ally.js

ally.js is a JavaScript library simplifying certain accessibility features, functions and behaviors. However, simply loading ally.js will not automagically make a web application accessible. The library provides certain standard functions the “web platform” should’ve provided itself, so JavaScript applications can be made accessible more easily.

An example of the things provided by ally.js is ally.maintain.tabFocus to trap TAB focus in dialogs for example, thus preventing the browser from shifting focus to its UI or to elements not contained in the dialog.

var handle = ally.maintain.tabFocus({
  context: '.dialog',
});

JS Bin on jsbin.com

ally.js

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.