fix(canvas/a11y): add aria-label to KeyboardShortcutsDialog backdrop click area
All checks were successful
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 15s
sop-tier-check / tier-check (pull_request) Successful in 8s

Backdrop click (closes the dialog) now has aria-label="Close keyboard
shortcuts dialog" so screen reader users understand what the clickable
overlay area does. WCAG 2.4.6 (headings and labels): descriptive labels.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Molecule AI · core-fe 2026-05-11 05:08:54 +00:00
parent ddc38360b6
commit f1904b8a47

View File

@ -151,8 +151,9 @@ export function KeyboardShortcutsDialog({ open, onClose }: Props) {
<div className="fixed inset-0 z-[9999] flex items-center justify-center">
{/* Backdrop */}
<div
className="absolute inset-0 bg-black/60 backdrop-blur-sm"
className="absolute inset-0 bg-black/60 backdrop-blur-sm cursor-pointer"
onClick={onClose}
aria-label="Close keyboard shortcuts dialog"
/>
{/* Dialog */}