️(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 if (totalPageCount <= 1) return null
return ( return (
<div <nav
aria-label={t('label')}
className={css({ className={css({
position: 'absolute', position: 'absolute',
bottom: '1rem', bottom: '1rem',
@@ -74,7 +75,7 @@ export function PaginationControl({
<RiArrowLeftSLine /> <RiArrowLeftSLine />
</Button> </Button>
<span <span
aria-live="polite" role="status"
className={css({ className={css({
padding: '0.25rem 0.5rem', padding: '0.25rem 0.5rem',
})} })}
@@ -93,6 +94,6 @@ export function PaginationControl({
> >
<RiArrowRightSLine /> <RiArrowRightSLine />
</Button> </Button>
</div> </nav>
) )
} }
+1
View File
@@ -97,6 +97,7 @@
} }
}, },
"pagination": { "pagination": {
"label": "Teilnehmerseiten",
"count": "{{currentPage}} von {{totalPageCount}}", "count": "{{currentPage}} von {{totalPageCount}}",
"next": "nächste Seite", "next": "nächste Seite",
"previous": "vorherige Seite" "previous": "vorherige Seite"
+1
View File
@@ -97,6 +97,7 @@
} }
}, },
"pagination": { "pagination": {
"label": "Participants pages",
"count": "{{currentPage}} of {{totalPageCount}}", "count": "{{currentPage}} of {{totalPageCount}}",
"next": "next page", "next": "next page",
"previous": "previous page" "previous": "previous page"
+1
View File
@@ -97,6 +97,7 @@
} }
}, },
"pagination": { "pagination": {
"label": "Pages des participants",
"count": "{{currentPage}} sur {{totalPageCount}}", "count": "{{currentPage}} sur {{totalPageCount}}",
"next": "page suivante", "next": "page suivante",
"previous": "page précédente" "previous": "page précédente"
+1
View File
@@ -97,6 +97,7 @@
} }
}, },
"pagination": { "pagination": {
"label": "Pagina's van deelnemers",
"count": "{{currentPage}} van {{totalPageCount}}", "count": "{{currentPage}} van {{totalPageCount}}",
"next": "volgende pagina", "next": "volgende pagina",
"previous": "vorige pagina" "previous": "vorige pagina"