From a8cc8a49e35c3e0e3dfc6c0047f0b827e4054c7e Mon Sep 17 00:00:00 2001
From: hatuhay <hatuhay@827704.no-reply.drupal.org>
Date: Sat, 13 Jun 2020 14:52:48 -0500
Subject: [PATCH] Pagination not recognizing override label text

---
 templates/navigation/pager.html.twig | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/templates/navigation/pager.html.twig b/templates/navigation/pager.html.twig
index d08ab0b..2434ecc 100644
--- a/templates/navigation/pager.html.twig
+++ b/templates/navigation/pager.html.twig
@@ -30,15 +30,15 @@
  */
 #}
 {% if items %}
-  <nav aria-label="Page navigation">
-    <h4 id="pagination-heading" class="visually-hidden">{{ 'Pagination'|t }}</h4>
+  <nav aria-label="{{ heading_id }}">
+    <h4 id="{{ heading_id }}" class="sr-only">{{ 'Pagination'|t }}</h4>
     <ul class="pagination js-pager__items">
       {# Print first item if we are not on the first page. #}
       {% if items.first %}
         <li class="page-item">
           <a href="{{ items.first.href }}" title="{{ 'Go to first page'|t }}"{{ items.first.attributes|without('href', 'title') }} class="page-link">
-            <span aria-hidden="true">«</span>
-            <span class="sr-only">{{ items.first.text|default('First'|t) }}</span>
+            <span aria-hidden="true">{{ items.first.text|default('«'|t) }}</span>
+            <span class="sr-only">{{ 'First page'|t }}</span>
           </a>
         </li>
       {% endif %}
@@ -46,8 +46,8 @@
       {% if items.previous %}
         <li class="page-item">
           <a href="{{ items.previous.href }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }} class="page-link">
-            <span aria-hidden="true">‹</span>
-            <span class="sr-only">{{ items.previous.text|default('Previous'|t) }}</span>
+            <span aria-hidden="true">{{ items.previous.text|default('‹'|t) }}</span>
+            <span class="sr-only">{{ 'Previous page'|t }}</span>
           </a>
         </li>
       {% endif %}
@@ -77,8 +77,8 @@
       {% if items.next %}
         <li class="pager__item--next">
           <a href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }} class="page-link">
-            <span aria-hidden="true">›</span>
-            <span class="sr-only">{{ items.next.text|default('Next'|t) }}</span>
+            <span aria-hidden="true">{{ items.next.text|default('›'|t) }}</span>
+            <span class="sr-only">{{ 'Next page'|t }}</span>
           </a>
         </li>
       {% endif %}
@@ -86,8 +86,8 @@
       {% if items.last %}
         <li class="page-item">
           <a href="{{ items.last.href }}" title="{{ 'Go to last page'|t }}"{{ items.last.attributes|without('href', 'title') }} class="page-link">
-            <span aria-hidden="true">»</span>
-            <span class="sr-only">{{ items.last.text|default('Last'|t) }}</span>
+            <span aria-hidden="true">{{ items.last.text|default('»'|t) }}</span>
+            <span class="sr-only">{{ 'Last page'|t }}</span>
           </a>
         </li>
       {% endif %}
-- 
GitLab