Permalink
Browse files

MDL-30884 quiz: ARIA attribute for the coutdown timer.

  • Loading branch information...
timhunt committed Sep 27, 2012
1 parent b969895 commit 9de4152effff5a5727c1595380439a917c018fd7
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/quiz/renderer.php
View
@@ -276,7 +276,8 @@ public function review_next_navigation(quiz_attempt $attemptobj, $page, $lastpag
public function countdown_timer() {
return html_writer::tag('div', get_string('timeleft', 'quiz') . ' ' .
html_writer::tag('span', '', array('id' => 'quiz-time-left')),
- array('id' => 'quiz-timer'));
+ array('id' => 'quiz-timer', 'role' => 'timer',
+ 'aria-atomic' => 'true', 'aria-relevant' => 'text'));
}
/**

0 comments on commit 9de4152

Please sign in to comment.