summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-20 05:53:40 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-20 05:53:40 +0000
commit56e35716bca7569ec796ca5829f7921319abdc51 (patch)
treef4e208366ebe73e4af3fb92fb7e5a0e547fdd252 /misc
parent01d85a55710ddde81507e678cbf0a4fcc623f339 (diff)
downloadbrdo-56e35716bca7569ec796ca5829f7921319abdc51.tar.gz
brdo-56e35716bca7569ec796ca5829f7921319abdc51.tar.bz2
#513946 by Everett Zufelt and mgifford: Enhance accessibility of progress bar by adding an ARIA live region.
Diffstat (limited to 'misc')
-rw-r--r--misc/progress.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/progress.js b/misc/progress.js
index 36b297fad..a8ade3cf6 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">&nbsp;</div>');