-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
feature/accessible-pages #207
base: master
Are you sure you want to change the base?
feature/accessible-pages #207
Conversation
…li>. Currently it is enable by default, but there is many accessibility cases when focus is needed for child element (link or button).
This pull request is automatically deployed with Now. Latest deployment for this branch: https://rc-pagination-git-fork-lauriskuznecovs-feature-accessible-pages.react-component.now.sh |
This is tweak is really needed if you need accessible pagination. |
This is extremely useful when we cater for accessibility and assistive touch on pagination. @afc163 |
conflict a lot |
Little up this MR is very great improvement for accessibility |
I will try to find the time to resolve conflicts at some time. |
Introducing prop -
focusOnListItem
which enable/disable focus for<li>
.Currently it is enable by default, but there is many accessibility cases when focus is needed for child element (link or button).
This feature will make accessible page links by adding
aria-current="page"
and add visually hidden text inside link - "Page", so screen readers will pronounce "Page 1" instead of just "1".Pagination accessibility best practices:
https://a11y-style-guide.com/style-guide/section-navigation.html#kssref-navigation-pagination