diff --git a/kaminari-core/app/views/kaminari/_paginator.html.haml b/kaminari-core/app/views/kaminari/_paginator.html.haml index 89f31f8..0a34338 100644 --- a/kaminari-core/app/views/kaminari/_paginator.html.haml +++ b/kaminari-core/app/views/kaminari/_paginator.html.haml @@ -6,7 +6,7 @@ -# remote: data-remote -# paginator: the paginator that renders the pagination tags inside = paginator.render do - %nav.pagination{ role: 'navigation', aria: { label: "pager" } } + %nav.pagination = first_page_tag unless current_page.first? = prev_page_tag unless current_page.first? - each_page do |page| diff --git a/kaminari-core/app/views/kaminari/_paginator.html.slim b/kaminari-core/app/views/kaminari/_paginator.html.slim index f54bf69..fd263b8 100644 --- a/kaminari-core/app/views/kaminari/_paginator.html.slim +++ b/kaminari-core/app/views/kaminari/_paginator.html.slim @@ -7,7 +7,7 @@ paginator : the paginator that renders the pagination tags inside == paginator.render do - nav.pagination role="navigation" aria-label="pager" + nav.pagination == first_page_tag unless current_page.first? == prev_page_tag unless current_page.first? - each_page do |page|