Permalink
Browse files

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

This is required so that assistive technologies can notify user about change on completion status
  • Loading branch information...
1 parent 7112729 commit f0989c3bf7c57a0d86ff39cdc01dd184be5bca27 Rajesh Taneja committed Mar 21, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 course/renderer.php
View
@@ -649,7 +649,8 @@ public function course_section_cm_completion($course, &$completioninfo, cm_info
$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 {

0 comments on commit f0989c3

Please sign in to comment.