-
Notifications
You must be signed in to change notification settings - Fork 630
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
fix #459: Remove incorrect aria role navigation #494
base: master
Are you sure you want to change the base?
Conversation
Yes please merge this fix! |
role="navigation" | ||
aria-label="Pagination" | ||
> | ||
<ul className={className || containerClassName} aria-label="Pagination"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hard-coded aria-label
value of "Pagination" should ideally be removed as well, or if included it should be configurable (although I suppose that's a separate issue)
I had to go back to an older version because of the issue. |
What version did you use? Thanks |
Version 8.1.3 |
In case anyone is struggling with a solution still we came up with a bit of a hacky one. I will admit it's not very sustainable as a change to the code can break it unless you are getting the child nodes recursively which we didn't in this example since the code doesn't seem to have been updated in quite some time. Hope this helps someone out there, or at the very leat spark some better ideas.
Right now this works because the first child node is the ul, but if this happens to change then this will no longer work. Getting the child node you are looking for recursively would be the way to go. Also, if anyone knows how to get the dom elements via some method using the reference returned by ReactPaginate then please feel free to reply and let me know. I really am not a big fan of this solution, but it was the only way I could get it to work. I accessed the react Fiber nodes via _reactInternals, but idk if this is a good practice. Happy coding!! |
Any update on
8.1.3 and 8.1.2 both have the issue. Any older version that doesn't not have this issue? |
You have to go hard on 8.1.3. |
Is this package being maintained?????? |
fixes #459