Unverified Commit 78cf3677 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3333401 by nicxvan, bnjmnm: Pager h4 causes accessibility flag on many pages

(cherry picked from commit 01de0a84)
(cherry picked from commit 00b74b0c)
parent da048c08
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -33,8 +33,7 @@
 */
#}
{% if items %}
  <nav class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
    <h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
  <nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
    <ul class="pager__items js-pager__items">
      {# Print first item if we are not on the first page. #}
      {% if items.first %}
+1 −2
Original line number Diff line number Diff line
@@ -13,8 +13,7 @@
 */
#}
{% if items.previous or items.next %}
  <nav role="navigation" aria-labelledby="{{ heading_id }}">
    <h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
  <nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
    <ul class="js-pager__items">
      {% if items.previous %}
        <li>
+1 −2
Original line number Diff line number Diff line
@@ -11,8 +11,7 @@
 */
#}
{% if items.previous or items.next %}
  <nav class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
    <h4 id="{{ heading_id }}" class="pager__heading visually-hidden">{{ 'Pagination'|t }}</h4>
  <nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
    <ul class="pager__items js-pager__items">
      {% if items.previous %}
        <li class="pager__item pager__item--previous">
+1 −2
Original line number Diff line number Diff line
@@ -35,8 +35,7 @@
 */
#}
{% if items %}
  <nav class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
    <h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
  <nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
    <ul class="pager__items js-pager__items">
      {# Print first item if we are not on the first page. #}
      {% if items.first %}
+1 −2
Original line number Diff line number Diff line
@@ -18,8 +18,7 @@
  ]
%}
{% if items.previous or items.next %}
  <nav{{ attributes.addClass('pager').setAttribute('role', 'navigation').setAttribute('aria-labelledby', heading_id) }}>
    <h4{{ title_attributes.addClass('visually-hidden').setAttribute('id', heading_id) }}>{{ 'Pagination'|t }}</h4>
  <nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
    <ul{{ content_attributes.addClass('pager__items', 'js-pager__items') }}>
      {% if items.previous %}
        {% apply spaceless %}
Loading