MDL-62139 output: Accessible action menus
Add label on the "gear" menu and default keyboard and focus controls.
This commit is contained in:
@@ -4287,7 +4287,7 @@ class action_menu implements renderable, templatable {
|
||||
$pixicon = '<b class="caret"></b>';
|
||||
$linkclasses[] = 'textmenu';
|
||||
} else {
|
||||
$title = new lang_string('actions', 'moodle');
|
||||
$title = new lang_string('actionsmenu', 'moodle');
|
||||
$this->actionicon = new pix_icon(
|
||||
't/edit_menu',
|
||||
'',
|
||||
@@ -4476,8 +4476,8 @@ class action_menu implements renderable, templatable {
|
||||
$primary->menutrigger = $this->menutrigger;
|
||||
$primary->triggerextraclasses = $this->triggerextraclasses;
|
||||
} else {
|
||||
$primary->title = get_string('actions');
|
||||
$actionicon = new pix_icon('t/edit_menu', '', 'moodle', ['class' => 'iconsmall actionmenu', 'title' => '']);
|
||||
$primary->title = get_string('actionsmenu');
|
||||
$actionicon = new pix_icon('t/edit_menu', '', 'moodle', ['class' => 'iconsmall actionmenu', 'title' => $primary->title]);
|
||||
}
|
||||
|
||||
if ($actionicon instanceof pix_icon) {
|
||||
|
||||
Reference in New Issue
Block a user