a11y: modal focus management — focus must enter/exit all dialogs (WCAG 2.4.3) #30

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

None of the three modals managed focus on open or close.

Fixed: SaveRecipeModal, RecipeDetailPanel, and SavedRecipesPanel new-collection modal all now store previousFocus on mount, move focus to first focusable child via nextTick, restore focus to trigger on unmount, and have aria-modal="true" + tabindex="-1" on their dialog containers.

Refs: CRIT-W1, MED-W9

None of the three modals managed focus on open or close. **Fixed:** `SaveRecipeModal`, `RecipeDetailPanel`, and `SavedRecipesPanel` new-collection modal all now store `previousFocus` on mount, move focus to first focusable child via `nextTick`, restore focus to trigger on unmount, and have `aria-modal="true"` + `tabindex="-1"` on their dialog containers. **Refs:** CRIT-W1, MED-W9
pyr0ball added this to the Beta — Recipe Suggestions milestone 2026-04-08 06:43:12 -07:00
pyr0ball added the
bug
accessibility
labels 2026-04-08 06:43:12 -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#30
No description provided.