From 45e544eba90b8adc1f37e9c30283d4921fa4c435 Mon Sep 17 00:00:00 2001 From: Nusendra Hanggarawan Date: Thu, 29 Oct 2026 12:39:47 +0700 Subject: [PATCH] fix(a11y): announce service detail error banners with role="alert" The service detail page renders two error banners -- "failed to load template" and "install failed" -- as plain
. They were rendered visually but announced to nothing: a screen reader user who triggered an install failure got no notification that anything had gone wrong, because the banner is injected into an already-loaded page and a bare div is not a live region. Adding role="alert" makes both an assertive live region, so the message is announced when it appears. This is the existing house convention -- see lib/components/Toast.svelte:7, which already does exactly this. Zero visual change: role is semantics only and the .error class is untouched. Verified present as a live alert node in the CDP accessibility tree. Gates: `npm run build` clean (adapter-static). `npm run check` reports 2 errors / 52 warnings, all pre-existing in lib/index.ts:4 and applications/[id]/+page.svelte:1137; zero diagnostics in the touched file. --- frontend/src/routes/services/[slug]/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/services/[slug]/+page.svelte b/frontend/src/routes/services/[slug]/+page.svelte index 697cfaa..0bca2a6 100644 --- a/frontend/src/routes/services/[slug]/+page.svelte +++ b/frontend/src/routes/services/[slug]/+page.svelte @@ -126,7 +126,7 @@ {#if loading}

Loading...

{:else if error && !template} -
{error}
+ {:else if template}

{template.name}

@@ -232,7 +232,7 @@ {/if} {#if error} -
{error}
+ {/if}