Skip to content
Browse files

MDL-34569 accessibility compliance for wiki module: Add label for inp…

…ut text and select tag
  • Loading branch information...
1 parent 7033316 commit 93dbb62f4567b1805bf15f32b7d478f6311e3a6a @rwijaya rwijaya committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/wiki/editors/wikieditor.php
View
3 mod/wiki/editors/wikieditor.php
@@ -120,7 +120,8 @@ private function getButtons() {
$html .= html_writer::empty_tag('img', array('alt' => $button[1], 'src' => $CFG->wwwroot . '/mod/wiki/editors/wiki/images/' . $button[0]));
$html .= "</a>";
}
- $html .= "<select onchange=\"insertTags('{$imagetag[0]}', '{$imagetag[1]}', this.value)\">";
+ $html .= "<label class='accesshide' for='addtags'>" . get_string('insertimage', 'wiki') . "</label>";
+ $html .= "<select id='addtags' onchange=\"insertTags('{$imagetag[0]}', '{$imagetag[1]}', this.value)\">";
$html .= "<option value='" . s(get_string('wikiimage', 'wiki')) . "'>" . get_string('insertimage', 'wiki') . '</option>';
foreach ($this->files as $filename) {
$html .= "<option value='".s($filename)."'>";

0 comments on commit 93dbb62

Please sign in to comment.
Something went wrong with that request. Please try again.