MDL-36882 course: Added aria-live for manual completion

This is required so that assistive technologies can notify user about change on completion status
This commit is contained in:
Rajesh Taneja
2013-03-21 17:28:00 +08:00
parent 7112729206
commit f0989c3bf7
+2 -1
View File
@@ -649,7 +649,8 @@ class core_course_renderer extends plugin_renderer_base {
$output .= html_writer::empty_tag('input', array(
'type' => 'image',
'src' => $this->output->pix_url('i/completion-'.$completionicon),
'alt' => $imgalt, 'title' => $imgtitle));
'alt' => $imgalt, 'title' => $imgtitle,
'aria-live' => 'polite'));
$output .= html_writer::end_tag('div');
$output .= html_writer::end_tag('form');
} else {