Problem/Motivation
Hi, i have 2 pagers in one node,
1) pager for comments page
2) pager for views block pages
when i get the report from Lighthouse 7.3.0 , i get the error "ARIA IDs are not unique" and i can read that the problem is in
<h3 id="pagination-heading" class="visually-hidden">
i assing in "Views ui->pager->use pager->Pager ID" one integer number for make the different id,
After this change, in Lighthouse 7.3.0 the error disappears for a little time, because the error appear again with the time, something override in the code the value and put " id="pagination-heading" without "Pager ID" again
Any idea? thanks
Comments
Comment #2
lendudeI tried to reproduce this on a clean Umami install.
Added a view with pagination to the page, added a comment field to the page and added enough comments to trigger pagination.
The ID for the second pager (the views pager in my case), got rewritten to
pagination-heading--2as expected.So can you provide some steps to reproduce this on a clean install?
Comment #3
cangurin limpiezasComment #4
cangurin limpiezashi Lendude, thanks for response
"The ID for the second pager (the views pager in my case), got rewritten to pagination-heading--2 as expected."
me too, but after a short time, any override the value and get default value.
i use olivero theme.
steps to reproduce
1) go to https://web.dev/measure/
2) put the url https://www.cangurin.com/servicios/limpiezas-zaragoza.html
3) get the result and click the button "View Report"
4) in lighthouse report i get the next error
"ARIA IDs are not unique
The value of an ARIA ID must be unique to prevent other instances from being overlooked by assistive technologies. Learn more.
Failing Elements
Paginación
"
5) in "views ui" go to "Views ui->pager->use pager->Pager ID" and put the value 1 for example (i attach one screenshot)
6) save the view
7) clean caches
8)go to https://web.dev/measure/
9)put the url https://www.cangurin.com/servicios/limpiezas-zaragoza.html
10)get the result and click the button "View Report"
11) the error dissapear and in the code the id are dinamic , its ok
12) wait maybe 3 hours and the error appear in lighhouse again and the code are override :(
Comment #5
idebr commentedThis was fixed in #3059232: Views mini pager Twig template has broken "aria-labelledby" reference
Comment #6
cangurin limpiezas@idebr many thanks for finding the duplicate but i am a little confused because the code of your patch in
https://www.drupal.org/project/drupal/issues/3059232#comment-13240028
is implemented in my version of Drupal 9.15, and the patch code is the seem code that i have in web .
Did I miss something? '
Comment #7
cangurin limpiezasi discover recently that the "id of the pager" can change too in the comment in
http://localhost/c06052021/admin/structure/types/manage/contentype/displ... ,
(i attach one screenshot)
when i put maybe the number 2 in the value, the id change correctly. and the test in https://web.dev/measure/, dont give me error.
but again wait maybe 3 hours and the error appear in lighhouse and the code are override.
maybe is not problem of the views module
Comment #11
quietone commented@Lendude was not able to reproduce this 2 years and ago. Apparently, it was fixed by #3059232: Views mini pager Twig template has broken "aria-labelledby" reference.
The last comment suggests that this is not a problem of the views module and there has been no further discussion of this problem.
Therefore, I am closing as cannot reproduce base on #2.
Cheers
Comment #12
quietone commentedAdding tag