Improves accesibility

This commit is contained in:
Alberto Garcia Cabeza
2015-10-13 16:48:37 +02:00
parent 2069376c4f
commit 2ca4557f2d
28 changed files with 88 additions and 100 deletions

View File

@@ -4,7 +4,8 @@
%>
<form class="inline-block">
<select class="js-location-changer js-order-selector select-order" data-order="<%= @current_order %>" name="order-selector">
<label for="order-selector-participation" class="sr-only"><%= t("debates.index.select_order") %></label>
<select class="js-location-changer js-order-selector select-order" data-order="<%= @current_order %>" name="order-selector" id="order-selector-participation">
<% @valid_orders.each do |order| %>
<option <%= 'selected' if order == @current_order %>
value='<%= current_path_with_query_params(order: order, page: 1) %>'>