mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 07:39:54 +02:00
MDL-30884 quiz: ARIA attribute for the coutdown timer.
This commit is contained in:
parent
2d7c5eeeea
commit
e498f21421
1 changed files with 2 additions and 1 deletions
|
@ -275,7 +275,8 @@ class mod_quiz_renderer extends plugin_renderer_base {
|
||||||
|
|
||||||
return html_writer::tag('div', get_string('timeleft', 'quiz') . ' ' .
|
return html_writer::tag('div', get_string('timeleft', 'quiz') . ' ' .
|
||||||
html_writer::tag('span', '', array('id' => 'quiz-time-left')),
|
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'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue