From 94d6211712b4e3528dbe598f76b8e29fdd83af9e Mon Sep 17 00:00:00 2001 From: ruizajtruss Date: Thu, 9 May 2024 22:57:54 +0000 Subject: [PATCH] Issue #2916 - fixing a11y pagination component bug and provided icons with aria-labels --- src/components/Pagination/Pagination.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/Pagination/Pagination.tsx b/src/components/Pagination/Pagination.tsx index 342b9fd28d..7c59676230 100644 --- a/src/components/Pagination/Pagination.tsx +++ b/src/components/Pagination/Pagination.tsx @@ -68,7 +68,8 @@ const PaginationPage = ({ const PaginationOverflow = () => (
  • + aria-label="ellipsis indicating non-visible pages" + >
  • ) @@ -174,7 +175,7 @@ export const Pagination = ({ aria-label="Previous page" data-testid="pagination-previous" onClick={onClickPrevious}> - + Previous ) : ( @@ -182,7 +183,7 @@ export const Pagination = ({ href={`${pathname}?page=${prevPage}`} className="usa-pagination__link usa-pagination__previous-page" aria-label="Previous page"> - + Previous )} @@ -214,7 +215,7 @@ export const Pagination = ({ data-testid="pagination-next" onClick={onClickNext}> Next - + ) : ( Next - + )}