Skip to content

Commit 3d6b385

Browse files
committed
fix: added region role to pagination container element
1 parent 9c33058 commit 3d6b385

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/components/internal/Pagination/Pagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function Pagination({
5959
);
6060

6161
return (
62-
<div className={classes.base}>
62+
<div role="region" aria-label={i18n.get('pagination')} className={classes.base}>
6363
<div className={classes.context}>
6464
{_limitOptions && onLimitSelection && (
6565
<>

src/translations/en-US.instructions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@
209209
"inputError.tooManyFiles": "Will be displayed as input validation error message if the number of uploaded files is more than expected.",
210210
"inputError.veryLargeFile": "Will be displayed as input validation error message if at least one uploaded file is of a size larger than the maximum allowed file size.",
211211
"noReportsFound": "Will be displayed if there is no reports data available for the given search criteria.",
212+
"pagination": "Used as label for a region of the page containing pagination information and controls.",
212213
"pagination.nextPage": "Used as label for a button which triggers fetching of records for the next page (if available).",
213214
"pagination.previousPage": "Used as label for a button which triggers fetching of records for the previous page (if available).",
214215
"pagination.selector.label": "Used as label for select widget with page limit options, allowing the user to select the maximum number of records that can be shown for each page.",

src/translations/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@
674674
"noReportsFound": "No reports found",
675675
"noTransactionsFound": "No transactions found",
676676
"other": "Other",
677+
"pagination": "Pagination",
677678
"pagination.nextPage": "Next page",
678679
"pagination.previousPage": "Previous page",
679680
"pagination.selector.label": "Records per page",

0 commit comments

Comments
 (0)