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 b9ef2c9 commit 6299d9a1a74814131d40bfe35ef29108a5009636 Rajesh Taneja committed Mar 26, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 course/lib.php
View
@@ -1674,7 +1674,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 6299d9a

Please sign in to comment.