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

Cangurin limpiezas created an issue. See original summary.

lendude’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs steps to reproduce

I 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--2 as expected.

So can you provide some steps to reproduce this on a clean install?

cangurin limpiezas’s picture

Issue summary: View changes
cangurin limpiezas’s picture

hi 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 :(

idebr’s picture

cangurin limpiezas’s picture

@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? '

cangurin limpiezas’s picture

i 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

Version: 9.1.x-dev » 9.3.x-dev

Drupal 9.1.10 (June 4, 2021) and Drupal 9.2.10 (November 24, 2021) were the last bugfix releases of those minor version series. Drupal 9 bug reports should be targeted for the 9.3.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

@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

quietone’s picture

Issue tags: +Bug Smash Initiative

Adding tag