Skip to content

Commit e162d5b

Browse files
authored
fix: pass label to getItemIcon to fix missing aria-label (#299)
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.
1 parent 9ea6d08 commit e162d5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Pagination.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ class Pagination extends React.Component {
538538
{itemRender(
539539
this.getJumpPrevPage(),
540540
'jump-prev',
541-
this.getItemIcon(jumpPrevIcon),
541+
this.getItemIcon(jumpPrevIcon, 'prev page'),
542542
)}
543543
</li>
544544
);
@@ -556,7 +556,7 @@ class Pagination extends React.Component {
556556
{itemRender(
557557
this.getJumpNextPage(),
558558
'jump-next',
559-
this.getItemIcon(jumpNextIcon),
559+
this.getItemIcon(jumpNextIcon, 'next page'),
560560
)}
561561
</li>
562562
);

0 commit comments

Comments
 (0)