Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit f0989c3bf7c57a0d86ff39cdc01dd184be5bca27 1 parent 7112729
@rajeshtaneja rajeshtaneja authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  course/renderer.php
View
3  course/renderer.php
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.