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

[5.6] Improve pagination accessibility #23962

Merged
merged 1 commit into from
Apr 25, 2018

Conversation

ngyikp
Copy link
Contributor

@ngyikp ngyikp commented Apr 21, 2018

  • Add role="navigation". An alternative is to wrap <nav> around, but that will shift the HTML structure
  • Add aria-disabled="true" for disabled items
  • Label previous/next page items with aria-label
  • Hide decoration arrows from screen-readers with aria-hidden="true"
  • Mark current page with aria-current="page"

- Add `role="navigation"`

  An alternative is to wrap `<nav>` around, but that will shift the
  HTML structure
- Add `aria-disabled="true"` for disabled items
- Label previous/next page items with `aria-label`
- Hide decoration arrows from screen-readers with
  `aria-hidden="true"`
- Mark current page with `aria-current="page"`
@taylorotwell taylorotwell merged commit d7cf66e into laravel:5.6 Apr 25, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants