Skip to content

Commit

Permalink
MDL-30884 quiz: ARIA attribute for the coutdown timer.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Nov 20, 2012
1 parent 6548ce0 commit a9258e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/quiz/renderer.php
Expand Up @@ -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'));
}

/**
Expand Down

0 comments on commit a9258e4

Please sign in to comment.