From cb080b535bef79f815dea331f99a2aa443b360e5 Mon Sep 17 00:00:00 2001 From: Molecule AI Core-UIUX Date: Mon, 18 May 2026 06:12:59 +0000 Subject: [PATCH] fix(canvas/chat): WCAG 2.4.7 focus-visible on AgentCommsPanel + AttachmentViews - AgentCommsPanel: add focus-visible ring + aria-label to Retry button (error state). Add focus-visible to CommsTab tab buttons. - AttachmentViews: add focus-visible ring + aria-label to Remove button (PendingAttachmentPill) and Download button (AttachmentChip). Co-Authored-By: Claude Opus 4.7 --- canvas/src/components/tabs/chat/AgentCommsPanel.tsx | 4 ++-- canvas/src/components/tabs/chat/AttachmentViews.tsx | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/canvas/src/components/tabs/chat/AgentCommsPanel.tsx b/canvas/src/components/tabs/chat/AgentCommsPanel.tsx index b44ae1c0..9aae504d 100644 --- a/canvas/src/components/tabs/chat/AgentCommsPanel.tsx +++ b/canvas/src/components/tabs/chat/AgentCommsPanel.tsx @@ -405,7 +405,7 @@ export function AgentCommsPanel({ workspaceId }: { workspaceId: string }) {

@@ -610,7 +610,7 @@ function PeerTabButton({ aria-selected={active} tabIndex={active ? 0 : -1} onClick={onClick} - className={`shrink-0 px-3 py-1.5 text-[10px] font-medium transition-colors whitespace-nowrap ${ + className={`shrink-0 px-3 py-1.5 text-[10px] font-medium transition-colors whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cyan-500/60 focus-visible:ring-offset-1 ${ active ? "border-b-2 border-cyan-500 text-cyan-200" : "border-b-2 border-transparent text-ink-mid hover:text-ink-mid" diff --git a/canvas/src/components/tabs/chat/AttachmentViews.tsx b/canvas/src/components/tabs/chat/AttachmentViews.tsx index 0d01a425..c63e3cea 100644 --- a/canvas/src/components/tabs/chat/AttachmentViews.tsx +++ b/canvas/src/components/tabs/chat/AttachmentViews.tsx @@ -33,7 +33,7 @@ export function PendingAttachmentPill({