A11Y-KBD-003-WORKED-001: representative worked example
Context: Synthetic Civic Benefits Portal eligibility-help modal on the claim form.
Inspected: Forward and reverse entry/exit in the open modal with only Tab, Shift+Tab and Escape.
Observed output: After the last link, Tab cycled to the close button as intended. Escape closed the modal and restored focus. Shift+Tab from the first control also cycled within the modal until Escape was used; the on-screen instruction named Escape.
Evidence:
- EVD-REF-004 focus sequence log
- EVD-REF-005 video with focus indicator
- EVD-REF-006 instruction/accessibility-tree extract
Tester reasoning: Focus containment is appropriate while the modal is open because an available, disclosed keyboard command closes it and restores focus. The internal loop alone is not a trap.
Decision: passed
Finding: OBS-REF-001 — Modal keyboard containment works as documented. Keyboard users can close the modal and return to the triggering control.
Remediation: Retain the visible and programmatically available Escape instruction and the focus-restoration regression test.
Reviewer feedback: Reviewer removed a false failure based solely on focus being contained inside an open modal and required evidence that Escape was disclosed before use.
Final client wording: No keyboard trap was found in the sampled eligibility-help modal. Escape was disclosed, closed the modal and returned focus to the Help trigger in both forward and reverse navigation checks.
Retest: RT-REF-002: no code change required; repeat on build CBP-2026.08.2 produced the same passing focus sequence.
Boundary: This is a representative, synthetic worked example for training and calibration. It is not evidence from a client product, participant or real assistive-technology execution.