replaces sr-only class to show-for-sr

This commit is contained in:
decabeza
2017-06-13 17:51:57 +02:00
parent 300634443c
commit 3bcfaeb61a
25 changed files with 52 additions and 63 deletions

View File

@@ -1,12 +1,12 @@
<div id="search_form" class="search-form-header">
<h1 class="sr-only"><%= t("shared.outline.searcher") %></h1>
<h1 class="show-for-sr"><%= t("shared.outline.searcher") %></h1>
<%= form_tag search_path, method: :get do %>
<div class="input-group">
<label for="search_text" class="sr-only"><%= t("#{i18n_namespace}.title") %></label>
<label for="search_text" class="show-for-sr"><%= t("#{i18n_namespace}.title") %></label>
<input type="text" name="search" placeholder='<%= t("#{i18n_namespace}.placeholder") %>' class="input-group-field" value="<%= params[:search] %>" id="search_text">
<div class="input-group-button">
<button type="submit" class="button" title="<%= t("#{i18n_namespace}.button") %>">
<span class="sr-only"><%= t("#{i18n_namespace}.button") %></span>
<span class="show-for-sr"><%= t("#{i18n_namespace}.button") %></span>
<span class="icon-search"></span>
</button>
</div>