From 59feb65252e9c15067a38bd6cb2b7464df48d794 Mon Sep 17 00:00:00 2001 From: Molecule AI Core-UIUX Date: Fri, 24 Apr 2026 11:27:51 +0000 Subject: [PATCH] fix(canvas/a11y): add type=button to 24 buttons across DetailsTab, ConfigTab, FilesTab, MemoryTab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WCAG 4.1.2 / bug #1669 follow-up — DetailsTab, ConfigTab, FilesTab, and MemoryTab had buttons without explicit type="button", causing accidental form submission in any surrounding
context. Changes: - DetailsTab (9 buttons): Save, Cancel (edit), Restart/Retry, Edit, View console output, peer select, Confirm Delete, Cancel (delete), Delete Workspace - ConfigTab AgentCardSection (3): Save, Cancel, Edit Agent Card - ConfigTab footer (3): Save & Restart, Save, Reload - ConfigTab textareas (2): aria-label added to Agent Card JSON editor and Raw YAML editor - FilesTab (4): Delete All, Cancel, Delete, Cancel - MemoryTab (11): Expand/Collapse, Open, Expand (collapsed state), Advanced, Refresh, Add, Save, Cancel (add form), expand entry, Delete entry, Show Total: 32 interactive elements corrected across 4 tab components. Co-Authored-By: Claude Sonnet 4.6 --- canvas/src/components/tabs/ConfigTab.tsx | 11 ++++++++--- canvas/src/components/tabs/DetailsTab.tsx | 9 +++++++++ canvas/src/components/tabs/FilesTab.tsx | 8 ++++---- canvas/src/components/tabs/MemoryTab.tsx | 11 +++++++++++ 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/canvas/src/components/tabs/ConfigTab.tsx b/canvas/src/components/tabs/ConfigTab.tsx index 09742689..9ef1f0d4 100644 --- a/canvas/src/components/tabs/ConfigTab.tsx +++ b/canvas/src/components/tabs/ConfigTab.tsx @@ -51,17 +51,18 @@ function AgentCardSection({ workspaceId }: { workspaceId: string }) { ) : editing ? (