From 4978bd7e72d4beb0c454cff78152f5f37408dcb4 Mon Sep 17 00:00:00 2001 From: Molecule AI Core-FE Date: Mon, 18 May 2026 12:15:53 +0000 Subject: [PATCH] fix(canvas): add role=alert aria-live=assertive to ConfigTab error divs WCAG 4.1.3: two error divs in ConfigTab.tsx used text-bad styling without declaring themselves as live regions. Screen readers miss the error announcement. Fix: add role="alert" aria-live="assertive" to both error divs, matching the pattern applied in PRs #1463/#1465 by core-uiux for other tab components. Co-Authored-By: Claude Opus 4.7 --- canvas/src/components/tabs/ConfigTab.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/canvas/src/components/tabs/ConfigTab.tsx b/canvas/src/components/tabs/ConfigTab.tsx index ba79ce137..c62740bfd 100644 --- a/canvas/src/components/tabs/ConfigTab.tsx +++ b/canvas/src/components/tabs/ConfigTab.tsx @@ -81,7 +81,7 @@ function AgentCardSection({ workspaceId }: { workspaceId: string }) { spellCheck={false} rows={12} className="w-full bg-surface-card border border-line rounded p-2 text-[10px] font-mono text-ink focus:outline-none focus:border-accent resize-none" /> - {error &&
{error}
} + {error &&
{error}
}