aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLuke Bacon <luke@equivalentideas.com>2015-04-01 12:38:43 +1100
committerLuke Bacon <luke@equivalentideas.com>2015-04-01 12:38:43 +1100
commit09dca9c7c15525e562e661921c6867298a1210c0 (patch)
treec81fb0e058dc9da64da7d2dba3b54617b10d2d94 /app
parentecfa1bfe0eceaa48d0e46bfb2d1fbb429879fcd1 (diff)
Add text label for search form
This is to make sure screen reader users are informed what this the input is for. Tested in Mac OSX VoiceOver screenreader part of #2210
Diffstat (limited to 'app')
-rw-r--r--app/views/general/_responsive_topnav.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/general/_responsive_topnav.html.erb b/app/views/general/_responsive_topnav.html.erb
index df7998f21..963dd1596 100644
--- a/app/views/general/_responsive_topnav.html.erb
+++ b/app/views/general/_responsive_topnav.html.erb
@@ -22,8 +22,8 @@
<li id="navigation_search">
<form id="navigation_search_form" method="post" action="<%= search_redirect_path %>">
- <label for="navigation_search_button">
- <img src="/assets/search.png" alt="Search:">
+ <label class="visually-hidden" for="navigation_search_button">
+ Search
</label>
<%= text_field_tag 'query', params[:query], { :id => "navigation_search_button", :title => "type your search term here" } %>
<button type="submit">