fix(canvas/a11y): add aria-label to KeyboardShortcutsDialog backdrop click area
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:
parent
ddc38360b6
commit
f1904b8a47
@ -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 */}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user