Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit a9258e46ae215bbce9d6d7c37028227efedf4626 1 parent 6548ce0
@timhunt timhunt authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  mod/quiz/renderer.php
View
3  mod/quiz/renderer.php
@@ -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'));
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.