diff --git a/canvas/src/components/tabs/FilesTab.tsx b/canvas/src/components/tabs/FilesTab.tsx index 2f3c7381..a3b895b7 100644 --- a/canvas/src/components/tabs/FilesTab.tsx +++ b/canvas/src/components/tabs/FilesTab.tsx @@ -162,25 +162,29 @@ export function FilesTab({ workspaceId }: Props) { /> {showDeleteAll && ( -
-

Delete all {files.filter((f) => !f.dir).length} files? This cannot be undone.

+ // role=alertdialog so SR users hear this destructive prompt + // immediately. Delete-All hovers DARKER (bg-red-700) — same AA + // contrast trap that bit ConfirmDialog/ApprovalBanner. Cancel + // lifts to surface-elevated instead of the prior no-op hover. +
+

Delete all {files.filter((f) => !f.dir).length} files? This cannot be undone.

- - + +
)} {error && ( -
{error}
+
{error}
)} {confirmDelete && ( -
-

Delete {confirmDelete}{files.find((f) => f.path === confirmDelete && f.dir) ? " and all its contents" : ""}?

+
+

Delete {confirmDelete}{files.find((f) => f.path === confirmDelete && f.dir) ? " and all its contents" : ""}?

- - + +
)}