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:
parent
b8757b7f0a
commit
9302766728
3 changed files with 3 additions and 3 deletions
|
@ -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| -%>
|
||||
|
|
|
@ -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|
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue