Skip to content

Commit

Permalink
Bug 1874564: QuickSearch inputs need labels (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
justdave committed May 14, 2024
1 parent 13189a9 commit 92d334f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion template/en/default/global/common-links.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
no_redirect.value = 1;
}
</script>
<input class="txt" type="text" id="quicksearch[% qs_suffix FILTER html %]" name="quicksearch"
<input class="txt" type="text" id="quicksearch[% qs_suffix FILTER html %]"
name="quicksearch" aria-labelledby="find[% qs_suffix FILTER html %]"
title="Quick Search" value="[% quicksearch FILTER html %]">
<input class="btn" type="submit" value="Search"
id="find[% qs_suffix FILTER html %]">
Expand Down
5 changes: 5 additions & 0 deletions template/en/default/index.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi">
<input id="quicksearch_main" name="quicksearch" title="Quick Search"
placeholder="Enter [% terms.abug %] # or some search terms"
aria-labelledby="find"
autofocus required>
<input id="find" type="submit" value="Quick Search">
<a href="page.cgi?id=quicksearch.html" title="Quick Search help">[?]</a>
Expand Down Expand Up @@ -137,21 +138,25 @@
<a href="buglist.cgi?chfield=%5BBug%20creation%5D&amp;chfieldfrom=24h">last 24 hours</a>
[% title = BLOCK %][% terms.Bugs %] reported in the last 24 hours[% END %]
<a href="buglist.cgi?chfield=%5BBug%20creation%5D&amp;chfieldfrom=24h&amp;ctype=atom&amp;title=[% title FILTER uri %]"
aria-label="Bugs reported in the last 24 hours - RSS feed"
class="rss">&nbsp;</a>
| <a href="buglist.cgi?chfield=%5BBug%20creation%5D&amp;chfieldfrom=7d">last 7 days</a>
[% title = BLOCK %][% terms.Bugs %] reported in the last 7 days[% END %]
<a href="buglist.cgi?chfield=%5BBug%20creation%5D&amp;chfieldfrom=7d&amp;ctype=atom&amp;title=[% title FILTER uri %]"
aria-label="Bugs reported in the last 7 days - RSS feed"
class="rss">&nbsp;</a>
</li>
<li>
[% terms.Bugs %] changed in the
<a href="buglist.cgi?chfieldfrom=24h">last 24 hours</a>
[% title = BLOCK %][% terms.Bugs %] changed in the last 24 hours[% END %]
<a href="buglist.cgi?chfieldfrom=24h&amp;ctype=atom&amp;title=[% title FILTER uri %]"
aria-label="Bugs changed in the last 24 hours - RSS feed"
class="rss">&nbsp;</a>
| <a href="buglist.cgi?chfieldfrom=7d">last 7 days</a>
[% title = BLOCK %][% terms.Bugs %] changed in the last 7 days[% END %]
<a href="buglist.cgi?chfieldfrom=7d&amp;ctype=atom&amp;title=[% title FILTER uri %]"
aria-label="Bugs changed in the last 7 days - RSS feed"
class="rss">&nbsp;</a>
</li>
</ul>
Expand Down
3 changes: 2 additions & 1 deletion template/en/default/pages/quicksearch.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
to search for:</label></p>

<form name="f" action="buglist.cgi" method="get">
<input size="40" name="quicksearch" id="quicksearch" autofocus required>
<input size="40" name="quicksearch" id="quicksearch"
aria-labelledby="find" autofocus required>
<input type="submit" value="Search" id="find">
</form>

Expand Down

0 comments on commit 92d334f

Please sign in to comment.