️(frontend) improve pagination control accessibility

Turn main-window pagination into a labelled nav landmark with a live
page counter for screen readers. Add pagination.label in all locales.
This commit is contained in:
Cyril
2026-06-01 17:21:58 +02:00
parent 3d4dc2d631
commit b498926353
5 changed files with 8 additions and 3 deletions
@@ -44,7 +44,8 @@ export function PaginationControl({
if (totalPageCount <= 1) return null
return (
<div
<nav
aria-label={t('label')}
className={css({
position: 'absolute',
bottom: '1rem',
@@ -74,7 +75,7 @@ export function PaginationControl({
<RiArrowLeftSLine />
</Button>
<span
aria-live="polite"
role="status"
className={css({
padding: '0.25rem 0.5rem',
})}
@@ -93,6 +94,6 @@ export function PaginationControl({
>
<RiArrowRightSLine />
</Button>
</div>
</nav>
)
}
+1
View File
@@ -97,6 +97,7 @@
}
},
"pagination": {
"label": "Teilnehmerseiten",
"count": "{{currentPage}} von {{totalPageCount}}",
"next": "nächste Seite",
"previous": "vorherige Seite"
+1
View File
@@ -97,6 +97,7 @@
}
},
"pagination": {
"label": "Participants pages",
"count": "{{currentPage}} of {{totalPageCount}}",
"next": "next page",
"previous": "previous page"
+1
View File
@@ -97,6 +97,7 @@
}
},
"pagination": {
"label": "Pages des participants",
"count": "{{currentPage}} sur {{totalPageCount}}",
"next": "page suivante",
"previous": "page précédente"
+1
View File
@@ -97,6 +97,7 @@
}
},
"pagination": {
"label": "Pagina's van deelnemers",
"count": "{{currentPage}} van {{totalPageCount}}",
"next": "volgende pagina",
"previous": "vorige pagina"