Description
Detects states or nested structures that users can enter but cannot leave in a reasonable way, including recursive modals, focus traps and nested wizards.
A navigation trap is a strongly connected set of states with no exit edge, or one whose exits are hidden, ambiguous or unavailable to some input methods. Traps are often recursive: a modal opens another modal, a nested wizard re-enters itself, or a component re-embeds its parent. Detection combines graph analysis (finding sink components), input-method checks (can a keyboard, switch or screen-reader user exit?), and depth analysis (how many levels deep can recursion go, and how many steps to return?). WCAG formalises one case: keyboard focus must be movable away from any component using standard keys. Rigour comes from testing every input modality and every recursion depth, not only the designed path.
Attributes
- Discipline
- Usability & Evaluation
- Loss type
- Latent
- Stage
- Evaluation
- Data
- Analytical / expert
- Effort
- Days
Steps
- List all containers that can nest or capture input: modals, drawers, wizards, embedded frames, full-screen modes and kiosk modes.
- Model them as a graph with nesting depth and identify sink components with no exit edge for each input modality.
- Test each container with keyboard only, screen reader, switch access and touch, confirming exit via Escape, back, or a visible close control.
- Probe recursion by triggering nested opens and record maximum depth and steps to return to the root; flag depths above 2 or returns needing more than 3 steps.
- Cross-check logs for force-quits, app restarts or session timeouts immediately after entering flagged containers.
- Fix traps and add automated checks (for example focus-trap tests) to CI.
Sources
- Hofstadter, D., Gödel, Escher, Bach: An Eternal Golden Braid (1979)
- Weyers, B., Bowen, J., Dix, A. & Palanque, P. (eds), The Handbook of Formal Methods in Human-Computer Interaction (2017)
- Gödel Escher Bach (Hofstadter)
- Handbook of Formal Methods in HCI
- The Inquiry Series, Ch 6 — Strange Loops, Recursive Failures & Navigation Traps
Also known as
- Navigation trap analysis
- Modal trap detection
- Keyboard and focus trap audit
Categories
- User Research
- Usability & Evaluation