Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
01de0a84
Unverified
Commit
01de0a84
authored
Jan 25, 2023
by
Lauri Eskola
Browse files
Issue
#3333401
by nicxvan, bnjmnm: Pager h4 causes accessibility flag on many pages
parent
7347556c
Changes
9
Hide whitespace changes
Inline
Side-by-side
core/modules/system/templates/pager.html.twig
View file @
01de0a84
...
...
@@ -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
%}
...
...
core/modules/views/templates/views-mini-pager.html.twig
View file @
01de0a84
...
...
@@ -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>
...
...
core/profiles/demo_umami/themes/umami/templates/classy/views/views-mini-pager.html.twig
View file @
01de0a84
...
...
@@ -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"
>
...
...
core/themes/claro/templates/pager.html.twig
View file @
01de0a84
...
...
@@ -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
%}
...
...
core/themes/claro/templates/views/views-mini-pager.html.twig
View file @
01de0a84
...
...
@@ -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
%}
...
...
core/themes/olivero/templates/navigation/pager.html.twig
View file @
01de0a84
...
...
@@ -31,8 +31,7 @@
*/
#}
{%
if
items
%}
<nav
class=
"pager layout--content-medium"
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
%}
...
...
core/themes/olivero/templates/views/views-mini-pager.html.twig
View file @
01de0a84
...
...
@@ -11,8 +11,7 @@
*/
#}
{%
if
items.previous
or
items.next
%}
<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 previous item if we are not on the first page. #}
{%
if
items.previous
%}
...
...
core/themes/starterkit_theme/templates/navigation/pager.html.twig
View file @
01de0a84
...
...
@@ -31,8 +31,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
%}
...
...
core/themes/starterkit_theme/templates/views/views-mini-pager.html.twig
View file @
01de0a84
...
...
@@ -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"
>
...
...
Lauri Eskola
@lauriii
mentioned in commit
00b74b0c
·
Jan 25, 2023
mentioned in commit
00b74b0c
mentioned in commit 00b74b0c049da958633914eaabb4601a9a5f6c5a
Toggle commit list
Lauri Eskola
@lauriii
mentioned in commit
78cf3677
·
Jan 25, 2023
mentioned in commit
78cf3677
mentioned in commit 78cf3677d3fa44e79aa710bf1470f6bbec800e7f
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment