From f0989c3bf7c57a0d86ff39cdc01dd184be5bca27 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Thu, 21 Mar 2013 17:28:00 +0800 Subject: [PATCH] MDL-36882 course: Added aria-live for manual completion This is required so that assistive technologies can notify user about change on completion status --- course/renderer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/course/renderer.php b/course/renderer.php index ab89e164f0a..54b32443493 100644 --- a/course/renderer.php +++ b/course/renderer.php @@ -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 {