mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 08:30:04 +01:00
MDL-76597 mod_quiz: Set presentation role for the question list
Since the <ul> and <li> elements for listing the quiz questions and elements are mainly used for layout purposes, it is better to set the role of these elements to presentation only.
This commit is contained in:
parent
77a0f1b129
commit
d2bacb04ff
@ -367,7 +367,7 @@ class edit_renderer extends \plugin_renderer_base {
|
||||
if ($structure->get_section_count() == 1) {
|
||||
$class .= ' only-one-section';
|
||||
}
|
||||
return html_writer::start_tag('ul', array('class' => $class));
|
||||
return html_writer::start_tag('ul', array('class' => $class, 'role' => 'presentation'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -404,8 +404,7 @@ class edit_renderer extends \plugin_renderer_base {
|
||||
}
|
||||
|
||||
$output .= html_writer::start_tag('li', array('id' => 'section-'.$section->id,
|
||||
'class' => 'section main clearfix'.$sectionstyle, 'role' => 'region',
|
||||
'aria-label' => $sectionheadingtext));
|
||||
'class' => 'section main clearfix'.$sectionstyle, 'role' => 'presentation'));
|
||||
|
||||
$output .= html_writer::start_div('content');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user