-
Notifications
You must be signed in to change notification settings - Fork 38
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
[A11Y] Pagination component is not as accessible as it could be #5279
Comments
12 tasks
I am working on this issue |
katielo-0830
added a commit
to katielo-0830/backdrop
that referenced
this issue
Oct 1, 2021
@katielo-0830 thanks for the PR! I made a few recommendations for changes, but I'm also testing in the sandbox :) |
katielo-0830
added a commit
to katielo-0830/backdrop
that referenced
this issue
Oct 1, 2021
…ttributes arguments to set the aria attributes Fixes: backdrop/backdrop-issues#5279
katielo-0830
added a commit
to katielo-0830/backdrop
that referenced
this issue
Oct 1, 2021
ghost
added
the
type - task
label
Dec 11, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
10. Pagination component is not as accessible as it could be
Description of Issue: Ideally, the pagination component would make use of a little more semantic HTML, such as the
<nav>
element and some ARIA attributes to aid a user in knowing which part of the pagination is currently acitve.URL: https://pr3750-llnmetezlaix5oe10ddq5m3nya7zdz2b.tugboat.qa/
Testing Environment/Browser: Windows Lenovo PC, Windows 10 Pro, Chrome Browser v. 94.0.4606.61, JAWS 2020.12.13
Severity: P1
File to change:
core/includes/pager.inc
, line 158Documentation: https://docs.backdropcms.org/api/backdrop/core%21includes%21pager.inc/function/theme_pager/1
Solution:
Suggested markup is as below, but significant changes are listed as follows. Some of these items can be achieved in Backdrop 1.x, but others will need to wait until 2.x, as they would be braking changes for existing sites.
Add
aria-current="page"
attribute to the active pager item.Add
aria-label
attribute to all other pages, with page number.Remove the h2 that is used nearby and says "pages"
Add
display:none
to specific elements to create desktop vs mobile2.x change: Add a surrounding
nav
tag witharia-label="Pagination"
2.x change: use button elements for First / Last / Next / Previous
Mobile recommendation:
desktop recommendation
The text was updated successfully, but these errors were encountered: