Skip to content

Commit

Permalink
chore: update pagination to use updated IconButton props (#1481)
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker authored May 16, 2024
1 parent a4d5b52 commit 83fae1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react/src/components/Pagination/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const Pagination = React.forwardRef<HTMLDivElement, Props>(
<li>
<IconButton
icon="chevron-double-left"
tooltipPlacement={tooltipPlacement}
tooltipProps={{ placement: tooltipPlacement }}
label={firstPageLabel}
aria-disabled={isFirstPage}
onClick={isFirstPage ? undefined : onFirstPageClick}
Expand All @@ -71,7 +71,7 @@ const Pagination = React.forwardRef<HTMLDivElement, Props>(
<li>
<IconButton
icon="chevron-left"
tooltipPlacement={tooltipPlacement}
tooltipProps={{ placement: tooltipPlacement }}
label={previousPageLabel}
aria-disabled={isFirstPage}
onClick={isFirstPage ? undefined : onPreviousPageClick}
Expand All @@ -92,7 +92,7 @@ const Pagination = React.forwardRef<HTMLDivElement, Props>(
<li>
<IconButton
icon="chevron-right"
tooltipPlacement={tooltipPlacement}
tooltipProps={{ placement: tooltipPlacement }}
label={nextPageLabel}
aria-disabled={isLastPage}
onClick={isLastPage ? undefined : onNextPageClick}
Expand All @@ -102,7 +102,7 @@ const Pagination = React.forwardRef<HTMLDivElement, Props>(
<li>
<IconButton
icon="chevron-double-right"
tooltipPlacement={tooltipPlacement}
tooltipProps={{ placement: tooltipPlacement }}
label={lastPageLabel}
aria-disabled={isLastPage}
onClick={isLastPage ? undefined : onLastPageClick}
Expand Down

0 comments on commit 83fae1b

Please sign in to comment.