diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-20 05:53:40 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-20 05:53:40 +0000 |
commit | 56e35716bca7569ec796ca5829f7921319abdc51 (patch) | |
tree | f4e208366ebe73e4af3fb92fb7e5a0e547fdd252 /misc/progress.js | |
parent | 01d85a55710ddde81507e678cbf0a4fcc623f339 (diff) | |
download | drupal-56e35716bca7569ec796ca5829f7921319abdc51.tar.gz drupal-56e35716bca7569ec796ca5829f7921319abdc51.zip |
#513946 by Everett Zufelt and mgifford: Enhance accessibility of progress bar by adding an ARIA live region.
Diffstat (limited to 'misc/progress.js')
-rw-r--r-- | misc/progress.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/progress.js b/misc/progress.js index 36b297fadba..a8ade3cf65a 100644 --- a/misc/progress.js +++ b/misc/progress.js @@ -18,7 +18,9 @@ Drupal.progressBar = function (id, updateCallback, method, errorCallback) { this.updateCallback = updateCallback; this.errorCallback = errorCallback; - this.element = $('<div class="progress"></div>').attr('id', id); + // The WAI-ARIA setting aria-live="polite" will announce changes after users + // have completed their current activity and not interrupt the screen reader. + this.element = $('<div class="progress" aria-live="polite"></div>').attr('id', id); this.element.html('<div class="bar"><div class="filled"></div></div>' + '<div class="percentage"></div>' + '<div class="message"> </div>'); |