From d07909f46b28667f8d79c0efccbf238bda531f18 Mon Sep 17 00:00:00 2001 From: Molecule AI Frontend Engineer Date: Fri, 17 Apr 2026 20:34:04 +0000 Subject: [PATCH] fix(canvas): fix degraded error text contrast and accessibility Replace title attribute (not read by screen readers for truncated text) with aria-label, add role="status" so live regions announce the error, and raise text color from text-amber-300/60 (~2.1:1) to text-amber-400 (~10.6:1) to meet WCAG AA contrast (4.5:1 minimum). Co-Authored-By: Claude Sonnet 4.6 --- canvas/src/components/WorkspaceNode.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/canvas/src/components/WorkspaceNode.tsx b/canvas/src/components/WorkspaceNode.tsx index ad469de6..9913ad82 100644 --- a/canvas/src/components/WorkspaceNode.tsx +++ b/canvas/src/components/WorkspaceNode.tsx @@ -256,8 +256,9 @@ export function WorkspaceNode({ id, data }: NodeProps>) {/* Degraded error preview */} {data.status === "degraded" && data.lastSampleError && (
{data.lastSampleError}