Skip to content

Commit

Permalink
Add aria label to pagination buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjapotocin committed Oct 27, 2023
1 parent 67b3ce9 commit 85d355d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/Pagination/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export default function Pagination({
<PaginationWrapper>
{page !== 0 && (
<PageButtonNavigation
aria-label="previous page"
$previous
onClick={() => {
setPage(page - 1);
Expand Down Expand Up @@ -150,6 +151,7 @@ export default function Pagination({

{page !== noOfPages - 1 && (
<PageButtonNavigation
aria-label="next page"
onClick={() => {
setPage(page + 1);
}}
Expand Down

0 comments on commit 85d355d

Please sign in to comment.