Skip to content

Commit

Permalink
Merge pull request #848 from frrrances/add-a11y-roles
Browse files Browse the repository at this point in the history
Add accessibility roles to pagination nav
  • Loading branch information
yuki24 committed Jan 21, 2017
2 parents a407506 + a4d98f9 commit 011cd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaminari-core/app/views/kaminari/_paginator.html.erb
Expand Up @@ -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| -%>
Expand Down

0 comments on commit 011cd6c

Please sign in to comment.