-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Mayflower version: 11.4.1
There are a number of potential accessibility improvements for the Mayflower Pagination component:
- It does not indicate to screen readers which page is currently selected, although there is visual styling to indicate this for sighted users.
aria-current="true"could be set on the selected page number. <a>element is used for essentially a<button>. The elements could instead be changed to a<button>if this behavior is preserved, however it would also be useful for projects to be able to define thehrefof the<a>element so that it behaves like a link. This would allow projects to render the component as static HTML and preserve the active page number state in the page URL. For example:<Pagination pages={[ { active: false, text: "2", href: "/my-page?page=2" } ]} ...
More details about accessible pagination components: https://www.a11ymatters.com/pattern/pagination/
clairesunstudio
Metadata
Metadata
Assignees
Labels
No labels