From 5b444ee987cc19e5d9e3884b67ed34734c3872dc Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 18 Apr 2016 17:37:03 +0100 Subject: [PATCH] MDL-53858 quiz accessibility: nav block should have role='navigation' --- mod/quiz/attemptlib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/quiz/attemptlib.php b/mod/quiz/attemptlib.php index 2977355b927..d03f92c869c 100644 --- a/mod/quiz/attemptlib.php +++ b/mod/quiz/attemptlib.php @@ -1653,7 +1653,9 @@ class quiz_attempt { $bc = new block_contents(); $bc->attributes['id'] = 'mod_quiz_navblock'; - $bc->title = get_string('quiznavigation', 'quiz'); + $bc->attributes['role'] = 'navigation'; + $bc->attributes['aria-labelled-by'] = 'mod_quiz_navblock_title'; + $bc->title = html_writer::span(get_string('quiznavigation', 'quiz'), '', array('id' => 'mod_quiz_navblock_title')); $bc->content = $output->navigation_panel($panel); return $bc; }