ally.js
is a JavaScript library simplifying certain accessibility features, functions and behaviors. However, simply loadingally.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',
});