react-paginate icon indicating copy to clipboard operation
react-paginate copied to clipboard

ARIA role should be appropriate for the element

Open fmazeiras opened this issue 1 year ago • 6 comments

since version 8.1.4 the component have accessibility violation when using axe to check

the error is

fmazeiras avatar Jun 23 '23 09:06 fmazeiras

Does not pass jest-axe

Screenshot 2023-08-25 at 1 27 15 pm

https://dequeuniversity.com/rules/axe/4.4/aria-allowed-role?application=axeAPI

christoshrousis avatar Aug 25 '23 03:08 christoshrousis

Same problem here. Any idea how to fix it?

martinholecekmax avatar Sep 01 '23 10:09 martinholecekmax

Same here! Would be nice to get this fixed, since this should be a one-liner.

AdrianFahrbach avatar Sep 19 '23 09:09 AdrianFahrbach

Same here. Let us pass role as prop if it's okay

MonikaPatelIT avatar Sep 21 '23 22:09 MonikaPatelIT

Hello same problem don't pass Jest-Axe

in file PaginationBoxView.js

      <ul
        className={className || containerClassName}
        role="navigation"
        aria-label="Pagination"
      >

no need role for < ul >

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul#specifications

fandporsh avatar Nov 14 '23 19:11 fandporsh

+1

ViktorSoroka07 avatar Nov 17 '23 10:11 ViktorSoroka07