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:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user