1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

add accessibility roles to pagination nav

This commit is contained in:
Frances Botsford 2017-01-12 13:50:29 -05:00
parent b8757b7f0a
commit 9302766728
3 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@
paginator: the paginator that renders the pagination tags inside
-%>
<%= paginator.render do -%>
<nav class="pagination">
<nav class="pagination" role="navigation" aria-label="pager">
<%= first_page_tag unless current_page.first? %>
<%= prev_page_tag unless current_page.first? %>
<% each_page do |page| -%>

View file

@ -6,7 +6,7 @@
-# remote: data-remote
-# paginator: the paginator that renders the pagination tags inside
= paginator.render do
%nav.pagination
%nav.pagination{ role: 'navigation', aria: { label: "pager" } }
= first_page_tag unless current_page.first?
= prev_page_tag unless current_page.first?
- each_page do |page|

View file

@ -7,7 +7,7 @@
paginator : the paginator that renders the pagination tags inside
== paginator.render do
nav.pagination
nav.pagination role="navigation" aria-label="pager"
== first_page_tag unless current_page.first?
== prev_page_tag unless current_page.first?
- each_page do |page|