mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-30 03:59:07 +00:00
♿️(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:
@@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user