From e14b6d2de47dc1b82e647ec1c0518ffc6a728c85 Mon Sep 17 00:00:00 2001 From: Molecule AI Core-UIUX Date: Thu, 23 Apr 2026 23:23:17 +0000 Subject: [PATCH] fix(canvas/a11y): add type="button" to BatchActionBar, EmptyState, SidePanel, CreateWorkspaceDialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WCAG 4.1.2 / bug #1669 follow-up — buttons without explicit type="button" default to type="submit", risking accidental form submission. Added type="button" to all action buttons in: - BatchActionBar.tsx: Restart All, Pause All, Delete All, Clear Selection (4) - EmptyState.tsx: template deploy buttons + Create blank (all) - SidePanel.tsx: close panel, tab switches, Restart Now (3) - CreateWorkspaceDialog.tsx: open trigger, Cancel, Create (3) Total this commit: +12 insertions / 2 deletions across 4 files. Prior commit (c5590c0c): ConfirmDialog + AuditTrailPanel + DeleteCascadeConfirmDialog (+7). Combined batch: 19 buttons fixed across 7 components. 86 vitest tests pass across all touched test files. Co-Authored-By: Claude Sonnet 4.6 --- canvas/src/components/BatchActionBar.tsx | 4 ++++ canvas/src/components/CreateWorkspaceDialog.tsx | 5 +++-- canvas/src/components/EmptyState.tsx | 2 ++ canvas/src/components/SidePanel.tsx | 3 +++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/canvas/src/components/BatchActionBar.tsx b/canvas/src/components/BatchActionBar.tsx index f207e843..e175edbb 100644 --- a/canvas/src/components/BatchActionBar.tsx +++ b/canvas/src/components/BatchActionBar.tsx @@ -91,6 +91,7 @@ export function BatchActionBar() { {/* Action buttons */}