Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility issue when pagination link is disabled #7147

Open
bishalpaudel opened this issue Apr 19, 2023 · 0 comments
Open

Accessibility issue when pagination link is disabled #7147

bishalpaudel opened this issue Apr 19, 2023 · 0 comments

Comments

@bishalpaudel
Copy link

bishalpaudel commented Apr 19, 2023

When one of the pagination link is disabled (for example, Prev button), accessibility fails saying: Certain ARIA roles must contain particular children

Each child inside role="menubar" must contain the child roles (like menuitem or menuitemradio). This condition is satisfied by all elements (all li contains either menuitem or menitemradio). The issue arises when some of the links are disabled (for example, the prev and next buttons are disabled when there is only one page in pagination), causing aria-hidden="true", and thus removes all elements inside it from the aria-tree, and thus removing role="menuitem" from the disabled pagination links, which fails the requirement of Certain ARIA roles must contain particular children.
I am using Axe DevTools with WCAG2.1AA as WCAG level.

Versions

Libraries:

  • WCAG level: WCAG2.1AA
  • Axe DevTools: 4.x
  • Vue: 2.#.#

Environment:

  • OS: [macOS Monterey]
  • Browser: [Chrome]
  • Version: [112]

Demo link

Screenshot: https://pasteboard.co/vNme2OWn4Pdv.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant