Permalink
Browse files

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

  • Loading branch information...
1 parent 6548ce0 commit a9258e46ae215bbce9d6d7c37028227efedf4626 @timhunt timhunt committed Sep 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/quiz/renderer.php
View
@@ -285,7 +285,8 @@ public function countdown_timer(quiz_attempt $attemptobj, $timenow) {
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 a9258e4

Please sign in to comment.