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

This reverts commit 78cf3677d3.
merge-requests/3297/head
xjm 2023-01-25 21:21:06 -06:00
parent b11a861da2
commit e9cde2970a
No known key found for this signature in database
GPG Key ID: 206B0B8743BDF4C2
9 changed files with 18 additions and 9 deletions

View File

@ -33,7 +33,8 @@
*/
#}
{% if items %}
<nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
<nav class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
<h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
<ul class="pager__items js-pager__items">
{# Print first item if we are not on the first page. #}
{% if items.first %}

View File

@ -13,7 +13,8 @@
*/
#}
{% if items.previous or items.next %}
<nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
<nav role="navigation" aria-labelledby="{{ heading_id }}">
<h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
<ul class="js-pager__items">
{% if items.previous %}
<li>

View File

@ -11,7 +11,8 @@
*/
#}
{% if items.previous or items.next %}
<nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
<nav class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
<h4 id="{{ heading_id }}" class="pager__heading visually-hidden">{{ 'Pagination'|t }}</h4>
<ul class="pager__items js-pager__items">
{% if items.previous %}
<li class="pager__item pager__item--previous">

View File

@ -35,7 +35,8 @@
*/
#}
{% if items %}
<nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
<nav class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
<h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
<ul class="pager__items js-pager__items">
{# Print first item if we are not on the first page. #}
{% if items.first %}

View File

@ -18,7 +18,8 @@
]
%}
{% if items.previous or items.next %}
<nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
<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>
<ul{{ content_attributes.addClass('pager__items', 'js-pager__items') }}>
{% if items.previous %}
{% apply spaceless %}

View File

@ -31,7 +31,8 @@
*/
#}
{% if items %}
<nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
<nav class="pager layout--content-medium" role="navigation" aria-labelledby="{{ heading_id }}">
<h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
<ul class="pager__items js-pager__items">
{# Print first item if we are not on the first page. #}
{% if items.first %}

View File

@ -11,7 +11,8 @@
*/
#}
{% if items.previous or items.next %}
<nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
<nav class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
<h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
<ul class="pager__items js-pager__items">
{# Print previous item if we are not on the first page. #}
{% if items.previous %}

View File

@ -31,7 +31,8 @@
*/
#}
{% if items %}
<nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
<nav class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
<h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
<ul class="pager__items js-pager__items">
{# Print first item if we are not on the first page. #}
{% if items.first %}

View File

@ -11,7 +11,8 @@
*/
#}
{% if items.previous or items.next %}
<nav class="pager" role="navigation" aria-label="{{ 'Pagination'|t }}">
<nav class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
<h4 id="{{ heading_id }}" class="pager__heading visually-hidden">{{ 'Pagination'|t }}</h4>
<ul class="pager__items js-pager__items">
{% if items.previous %}
<li class="pager__item pager__item--previous">