From 3d3fe8d626737e3a9a90c20f0e7bfcc61d2b7709 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 26 Apr 2026 21:42:16 +0200 Subject: [PATCH] fix(pagination): add sr-only span to preserve aria-current on mobile AT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the mobile label is aria-hidden and the desktop button container is display:none (below sm:), mobile screen reader users had no aria-current indicator. Added a sr-only span with aria-current="page" that stays in the AT tree at all breakpoints regardless of CSS display state. On desktop the active page button also carries aria-current — both announce the same page information, which is acceptable. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/components/Pagination.svelte | 8 +++++++- frontend/src/lib/components/Pagination.svelte.spec.ts | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/Pagination.svelte b/frontend/src/lib/components/Pagination.svelte index 8cde307a..b9c4834b 100644 --- a/frontend/src/lib/components/Pagination.svelte +++ b/frontend/src/lib/components/Pagination.svelte @@ -95,7 +95,7 @@ const pageWindow = $derived.by(() => { {/if} - + + + + {m.pagination_page_of({ page: page + 1, total: totalPages })} +