mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-67970 course: More informative aria-label for 'more help'
This commit is contained in:
parent
99cac46162
commit
f064e11579
3 changed files with 8 additions and 6 deletions
|
@ -53,7 +53,9 @@ class content_item_readonly_repository implements content_item_readonly_reposito
|
|||
if ($sm->string_exists('modulename_link', $modname)) { // Link to further info in Moodle docs.
|
||||
$link = get_string('modulename_link', $modname);
|
||||
$linktext = get_string('morehelp');
|
||||
$help .= \html_writer::tag('div', $OUTPUT->doc_link($link, $linktext, true), ['class' => 'helpdoclink']);
|
||||
$arialabel = get_string('morehelpaboutmodule', '', get_string('modulename', $modname));
|
||||
$doclink = $OUTPUT->doc_link($link, $linktext, true, ['aria-label' => $arialabel]);
|
||||
$help .= \html_writer::tag('div', $doclink, ['class' => 'helpdoclink']);
|
||||
}
|
||||
}
|
||||
return $help;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue