summaryrefslogtreecommitdiffstatshomepage
path: root/misc/progress.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/progress.js')
-rw-r--r--misc/progress.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/progress.js b/misc/progress.js
index 36b297fadba1..a8ade3cf65a6 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>');