Skip to content
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 8bb0c27 commit 44ee5acee4c87069e0d8b4f3167bcc2146dd3602 @rajeshtaneja rajeshtaneja committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 course/lib.php
View
3 course/lib.php
@@ -1727,7 +1727,8 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
'type' => 'hidden', 'name' => 'completionstate',
'value' => $newstate));
echo html_writer::empty_tag('input', array(
- 'type' => 'image', 'src' => $imgsrc, 'alt' => $imgalt, 'title' => $imgtitle));
+ 'type' => 'image', 'src' => $imgsrc, 'alt' => $imgalt, 'title' => $imgtitle,
+ 'aria-live' => 'polite'));
echo html_writer::end_tag('div');
echo html_writer::end_tag('form');
} else {

0 comments on commit 44ee5ac

Please sign in to comment.
Something went wrong with that request. Please try again.