From 451904daeb0d345d0aeb9cceaf59072341d73927 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 26 Apr 2026 21:37:50 +0200 Subject: [PATCH] fix(pagination): hide mobile page label from AT tree with aria-hidden The mobile 'Seite X von Y' span had aria-current='page', which created two elements announcing the current page on wide screens: the hidden mobile label and the active desktop button. On sm:+ screens the mobile span is display:none (removed from AT tree), but on small screens both the span and the desktop button were redundant. Replace aria-current with aria-hidden='true' on the mobile label so AT always relies on the desktop button's aria-current. Updates spec test accordingly and adds a second assertion in a broader test context (Decision Queue #1). Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/components/Pagination.svelte | 3 ++- frontend/src/lib/components/Pagination.svelte.spec.ts | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/Pagination.svelte b/frontend/src/lib/components/Pagination.svelte index 45ba1ae5..8cde307a 100644 --- a/frontend/src/lib/components/Pagination.svelte +++ b/frontend/src/lib/components/Pagination.svelte @@ -95,9 +95,10 @@ const pageWindow = $derived.by(() => { {/if} +