From 575f44475f8c0039ac7702e940888a4475d45e34 Mon Sep 17 00:00:00 2001 From: Molecule AI Core-UIUX Date: Sun, 17 May 2026 23:42:03 +0000 Subject: [PATCH] fix(canvas/FilesTab): WCAG 1.1.1/2.4.7/4.1.3 on FileEditor - Add aria-hidden=true to decorative emoji (empty state + file type icon) - Add aria-label to textarea so screen readers announce it as "File content editor" - Add role=status + aria-live=polite to save success message (WCAG 4.1.3) - Add focus-visible ring to Download and Save buttons (WCAG 2.4.7) Co-Authored-By: Claude Opus 4.7 --- canvas/src/components/tabs/FilesTab/FileEditor.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/canvas/src/components/tabs/FilesTab/FileEditor.tsx b/canvas/src/components/tabs/FilesTab/FileEditor.tsx index db5301c5d..c628085cc 100644 --- a/canvas/src/components/tabs/FilesTab/FileEditor.tsx +++ b/canvas/src/components/tabs/FilesTab/FileEditor.tsx @@ -35,7 +35,7 @@ export function FileEditor({ return (
-
📄
+

Select a file to edit

@@ -47,16 +47,16 @@ export function FileEditor({ {/* File header */}
- {getIcon(selectedFile, false)} + {selectedFile} {isDirty && modified}
- {success && {success}} + {success && {success}} @@ -64,7 +64,7 @@ export function FileEditor({ @@ -103,6 +103,7 @@ export function FileEditor({ } }} spellCheck={false} + aria-label="File content editor" className="flex-1 w-full bg-surface p-3 text-[11px] font-mono text-ink leading-relaxed resize-none focus:outline-none" style={{ tabSize: 2 }} /> -- 2.52.0