Open jairovg opened 3 years ago
A clear and concise description of what the problem is.
role=navigation
nav
<!-- const items = [ { page: 1, href: '?p=1', }, { page: 2, href: '?p=2', }, { page: 3, href: '?p=3', }, ]; const currentPage = 2; const totalPages=3; --> <pagination current-page="currentPage" items="items" total-pages="totalPages" onChange="changeHandler" />
The visual requirements may be found in the UpLabs page.
It's better to handle an anchor with aria-disabled state in the current page instead return just the page number.
aria-disabled
What problem does this feature solve?
A clear and concise description of what the problem is.
Describe the solution you'd like
role=navigation
but thenav
element already communicates that the element has a role of navigation.What does the proposed API look like?
Additional context
The visual requirements may be found in the UpLabs page.