From c2265b615d3e15bad8ca21b95e7244e5403c70ff Mon Sep 17 00:00:00 2001 From: David Sally Date: Thu, 6 Aug 2020 13:05:59 -0700 Subject: [PATCH] fix: pass label to `getItemIcon` to fix missing `aria-label` This fixes several accessibility warnings related to the jumper caused by a missing `aria-label`. The fixes can be observed in the `itemRender` and `jumper` stories in Storybook. --- src/Pagination.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Pagination.jsx b/src/Pagination.jsx index 4c6ea9f0..35fdbbc1 100644 --- a/src/Pagination.jsx +++ b/src/Pagination.jsx @@ -538,7 +538,7 @@ class Pagination extends React.Component { {itemRender( this.getJumpPrevPage(), 'jump-prev', - this.getItemIcon(jumpPrevIcon), + this.getItemIcon(jumpPrevIcon, 'prev page'), )} ); @@ -556,7 +556,7 @@ class Pagination extends React.Component { {itemRender( this.getJumpNextPage(), 'jump-next', - this.getItemIcon(jumpNextIcon), + this.getItemIcon(jumpNextIcon, 'next page'), )} );