add label for search field for screen readers

This commit is contained in:
Jan-Christoph Borchardt 2014-12-17 14:49:13 +01:00
parent 6f4ed59883
commit 0c764bc39f
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,9 @@
</div>
<form class="searchbox" action="#" method="post">
<label for="query" class="visually-hidden">
<?php p($l->t('Search'));?>
</label>
<input id="searchbox" class="svg" type="search" name="query"
value="<?php if(isset($_POST['query'])) {p($_POST['query']);};?>"
autocomplete="off" tabindex="2" />