MDL-67874 theme_boost: make focus outline accessible

This commit is contained in:
Bas Brands 2020-04-08 12:24:02 +02:00
parent 8aa0f2c4d8
commit 91de0ed823
30 changed files with 473 additions and 97 deletions

View file

@ -1167,7 +1167,7 @@ class core_renderer extends renderer_base {
if ($this->page->pagetype == 'site-index') {
// Special case for site home page - please do not remove
return '<div class="sitelink">' .
'<a title="Moodle" href="http://moodle.org/">' .
'<a title="Moodle" class="d-inline-block aalink" href="http://moodle.org/">' .
'<img src="' . $this->image_url('moodlelogo_grayhat') . '" alt="'.get_string('moodlelogo').'" /></a></div>';
} else if (!empty($CFG->target_release) && $CFG->target_release != $CFG->release) {
@ -2571,7 +2571,7 @@ class core_renderer extends renderer_base {
$url = new moodle_url('/user/view.php', array('id' => $user->id, 'course' => $courseid));
}
$attributes = array('href'=>$url);
$attributes = array('href' => $url, 'class' => 'd-inline-block aabtn');
if (!$userpicture->visibletoscreenreaders) {
$attributes['tabindex'] = '-1';
$attributes['aria-hidden'] = 'true';