a11y: Escape key does not close any modal (WCAG 2.1.1) #31

Closed
opened 2026-04-08 06:43:13 -07:00 by pyr0ball · 0 comments
Owner

All three modals used @click.self for dismissal but had no keyboard escape path.

Fixed: document.addEventListener('keydown', handleKeydown) added in onMounted across all three modals; removed in onUnmounted. Escape calls emit('close') / sets showNewCollection = false.

Refs: CRIT-W2

All three modals used `@click.self` for dismissal but had no keyboard escape path. **Fixed:** `document.addEventListener('keydown', handleKeydown)` added in `onMounted` across all three modals; removed in `onUnmounted`. `Escape` calls `emit('close')` / sets `showNewCollection = false`. **Refs:** CRIT-W2
pyr0ball added this to the Beta — Recipe Suggestions milestone 2026-04-08 06:43:13 -07:00
pyr0ball added the
bug
accessibility
labels 2026-04-08 06:43:13 -07:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Circuit-Forge/kiwi#31
No description provided.