Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-34558 accessibility compliance for filter: Add forform input text…

… and select tag
  • Loading branch information...
commit f81c3a32f0e60acf73534854318e467963814799 1 parent 02814bf
rwijaya rwijaya authored
3  filter/algebra/algebradebug.php
View
@@ -280,7 +280,8 @@ function slasharguments($texexp, $md5) {
<form action="algebradebug.php" method="get"
target="inlineframe">
<center>
- <input type="text" name="algebra" size="50"
+ <label for="algebra" class="accesshide"><?php print_string('algebraicexpression', 'filter_algebra'); ?></label>
+ <input type="text" id="algebra" name="algebra" size="50"
value="sin(z)/(x^2+y^2)" />
</center>
<ol>
1  filter/algebra/lang/en/filter_algebra.php
View
@@ -24,3 +24,4 @@
*/
$string['filtername'] = 'Algebra notation';
+$string['algebraicexpression'] = 'Algebraic expression';
5 filter/manage.php
View
@@ -181,7 +181,10 @@
} else {
$activechoices[TEXTFILTER_INHERIT] = $strdefaultoff;
}
- $row[] = html_writer::select($activechoices, str_replace('/', '_', $filter), $filterinfo->localstate, false);
+ $filtername = str_replace('/', '_', $filter);
+ $select = html_writer::label($filterinfo->localstate, 'menu'. $filtername, false, array('class' => 'accesshide'));
+ $select .= html_writer::select($activechoices, $filtername, $filterinfo->localstate, false);
+ $row[] = $select;
// Settings link, if required
if ($settingscol) {
Please sign in to comment.
Something went wrong with that request. Please try again.