Skip to content

Commit

Permalink
MDL-62225 assignfeedback_editpdf: Add alt text for nav button shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyjbutler committed May 30, 2018
1 parent 6b2e046 commit 8e64242
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions mod/assign/feedback/editpdf/classes/renderer.php
Expand Up @@ -139,14 +139,16 @@ public function render_assignfeedback_editpdf_widget(assignfeedback_editpdf_widg
$nav_next = 'nav_next';
}

$iconalt = get_string('navigateprevious', 'assignfeedback_editpdf');
$iconshortcut = $this->get_shortcut('navigate-previous-button');
$iconalt = get_string('navigateprevious', 'assignfeedback_editpdf', $iconshortcut);
$iconhtml = $this->image_icon($nav_prev, $iconalt, 'assignfeedback_editpdf');
$navigation1 .= html_writer::tag('button', $iconhtml, array('disabled'=>'true',
'class'=>'navigate-previous-button', 'accesskey' => $this->get_shortcut('navigate-previous-button')));
$navigation1 .= html_writer::tag('select', null, array('disabled'=>'true',
'aria-label' => get_string('gotopage', 'assignfeedback_editpdf'), 'class'=>'navigate-page-select',
'accesskey' => $this->get_shortcut('navigate-page-select')));
$iconalt = get_string('navigatenext', 'assignfeedback_editpdf');
$iconshortcut = $this->get_shortcut('navigate-next-button');
$iconalt = get_string('navigatenext', 'assignfeedback_editpdf', $iconshortcut);
$iconhtml = $this->image_icon($nav_next, $iconalt, 'assignfeedback_editpdf');
$navigation1 .= html_writer::tag('button', $iconhtml, array('disabled'=>'true',
'class'=>'navigate-next-button', 'accesskey' => $this->get_shortcut('navigate-next-button')));
Expand Down
Expand Up @@ -65,8 +65,8 @@
$string['launcheditor'] = 'Launch PDF editor...';
$string['line'] = 'Line';
$string['loadingeditor'] = 'Loading PDF editor';
$string['navigatenext'] = 'Next page';
$string['navigateprevious'] = 'Previous page';
$string['navigatenext'] = 'Next page (Alt/Shift-Alt/Ctrl-Option + {$a})';
$string['navigateprevious'] = 'Previous page (Alt/Shift-Alt/Ctrl-Option + {$a})';
$string['oval'] = 'Oval';
$string['output'] = 'Output:';
$string['pagenumber'] = 'Page {$a}';
Expand Down

0 comments on commit 8e64242

Please sign in to comment.