aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Bacon <luke@equivalentideas.com>2015-04-01 12:52:09 +1100
committerLuke Bacon <luke@equivalentideas.com>2015-04-01 12:52:09 +1100
commit644a665aabf7ca7e3a398a8e47a56653b2c1b9e6 (patch)
tree98d11165748b22a8b33e667a9326f18377bd86c8
parent09dca9c7c15525e562e661921c6867298a1210c0 (diff)
Add html 5 'search' input type
enables browser ux improvements, see http://html5doctor.com/html5-forms-input-types/
-rw-r--r--app/views/general/_responsive_topnav.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/general/_responsive_topnav.html.erb b/app/views/general/_responsive_topnav.html.erb
index 963dd1596..56ae21a4a 100644
--- a/app/views/general/_responsive_topnav.html.erb
+++ b/app/views/general/_responsive_topnav.html.erb
@@ -25,7 +25,7 @@
<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" } %>
+ <%= text_field_tag 'query', params[:query], { :id => "navigation_search_button", :type => "search", :title => "type your search term here" } %>
<button type="submit">
<span class="visually-hidden">
Submit Search