Skip to content

Commit 513f191

Browse files
authored
fix: add aria-label for accessibility in Pagination component and update snapshots (#634)
1 parent f12b2a2 commit 513f191

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Pagination.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ const Pagination: React.FC<PaginationProps> = (props) => {
384384
) : (
385385
<input
386386
type="text"
387+
aria-label={locale.jump_to}
387388
value={internalInputVal}
388389
disabled={disabled}
389390
onKeyDown={handleKeyDown}

tests/__snapshots__/demo.test.tsx.snap

+6
Original file line numberDiff line numberDiff line change
@@ -2271,6 +2271,7 @@ exports[`Example jumperWithGoButton 1`] = `
22712271
title="1/5"
22722272
>
22732273
<input
2274+
aria-label="跳至"
22742275
size="3"
22752276
type="text"
22762277
value="1"
@@ -3673,6 +3674,7 @@ exports[`Example simple 1`] = `
36733674
title="1/5"
36743675
>
36753676
<input
3677+
aria-label="跳至"
36763678
size="3"
36773679
type="text"
36783680
value="1"
@@ -3757,6 +3759,7 @@ exports[`Example simple 1`] = `
37573759
title="1/5"
37583760
>
37593761
<input
3762+
aria-label="跳至"
37603763
size="3"
37613764
type="text"
37623765
value="1"
@@ -3806,6 +3809,7 @@ exports[`Example simple 1`] = `
38063809
title="1/5"
38073810
>
38083811
<input
3812+
aria-label="跳至"
38093813
size="3"
38103814
type="text"
38113815
value="1"
@@ -3850,6 +3854,7 @@ exports[`Example simple 1`] = `
38503854
title="1/5"
38513855
>
38523856
<input
3857+
aria-label="跳至"
38533858
size="3"
38543859
type="text"
38553860
value="1"
@@ -3943,6 +3948,7 @@ exports[`Example simple 1`] = `
39433948
title="1/5"
39443949
>
39453950
<input
3951+
aria-label="跳至"
39463952
size="3"
39473953
type="text"
39483954
value="1"

0 commit comments

Comments
 (0)