Commit 56e35716 authored by webchick's avatar webchick
Browse files

#513946 by Everett Zufelt and mgifford: Enhance accessibility of progress bar...

#513946 by Everett Zufelt and mgifford: Enhance accessibility of progress bar by adding an ARIA live region.
parent 01d85a55
......@@ -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>');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment