Permalink
Browse files

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

… and select tag
  • Loading branch information...
1 parent 470d47f commit 0013540d2f0c62f100ce888d9d34eab679a36957 @rwijaya rwijaya committed Jul 27, 2012
Showing with 7 additions and 2 deletions.
  1. +2 −1 filter/algebra/algebradebug.php
  2. +1 −0 filter/algebra/lang/en/filter_algebra.php
  3. +4 −1 filter/manage.php
@@ -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>
@@ -24,3 +24,4 @@
*/
$string['filtername'] = 'Algebra notation';
+$string['algebraicexpression'] = 'Algebraic expression';
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) {

0 comments on commit 0013540

Please sign in to comment.