From 72f422afe27cb73e5ef3b37018730cfd823de140 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 9 May 2026 15:49:18 +0200 Subject: [PATCH] =?UTF-8?q?fix(a11y):=20increase=20all=20PdfControls=20but?= =?UTF-8?q?tons=20to=2044=C3=9744px=20touch=20targets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add min-h-[44px] min-w-[44px] to all five PDF viewer buttons (prev, next, zoom in, zoom out, annotation toggle) and widen icon-only padding from p-1 to p-2. Adds aria-pressed to the annotation toggle for correct toggle semantics (WCAG 2.2 §2.5.8 + ARIA 1.2). Co-Authored-By: Claude Sonnet 4.6 --- .../lib/document/viewer/PdfControls.svelte | 11 +-- .../viewer/PdfControls.svelte.spec.ts | 79 +++++++++++++++++++ 2 files changed, 85 insertions(+), 5 deletions(-) diff --git a/frontend/src/lib/document/viewer/PdfControls.svelte b/frontend/src/lib/document/viewer/PdfControls.svelte index da586f82..b94c9881 100644 --- a/frontend/src/lib/document/viewer/PdfControls.svelte +++ b/frontend/src/lib/document/viewer/PdfControls.svelte @@ -35,7 +35,7 @@ let { onclick={onPrev} disabled={currentPage <= 1} aria-label="Zurück" - class="rounded p-1 text-ink-3 transition hover:bg-surface/10 disabled:opacity-40" + class="min-h-[44px] min-w-[44px] rounded p-2 text-ink-3 transition hover:bg-surface/10 disabled:opacity-40" > @@ -52,7 +52,7 @@ let { onclick={onNext} disabled={!isLoaded || currentPage >= totalPages} aria-label="Weiter" - class="rounded p-1 text-ink-3 transition hover:bg-surface/10 disabled:opacity-40" + class="min-h-[44px] min-w-[44px] rounded p-2 text-ink-3 transition hover:bg-surface/10 disabled:opacity-40" > @@ -65,7 +65,7 @@ let {