From e16b7402bd34d93092c374f5955d06e7f961055b Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 1 Jun 2026 20:44:56 +0200 Subject: [PATCH] fix(document): make the PDF error state accessible (alert + larger link) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The error block was a colour-only, visually-small dead end. Add role="alert" so screen readers announce the failure, bump the message to text-base and the recovery download link to text-sm with a py-2 tap target — the only escape hatch, sized for the archive's older readers. Addresses re-review: Leonie (a11y of the error state). Refs #708 Co-Authored-By: Claude Opus 4.8 --- frontend/src/lib/document/viewer/PdfViewer.svelte | 13 ++++++++++--- .../lib/document/viewer/PdfViewer.svelte.test.ts | 2 ++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/document/viewer/PdfViewer.svelte b/frontend/src/lib/document/viewer/PdfViewer.svelte index 603dd8b5..c93a31e6 100644 --- a/frontend/src/lib/document/viewer/PdfViewer.svelte +++ b/frontend/src/lib/document/viewer/PdfViewer.svelte @@ -170,13 +170,20 @@ function handleAnnotationClick(id: string) {

Keine Datei vorhanden

{:else if renderer.error} -
-

{m.doc_render_failed()}

+ +