# Mobile navigation keyboard-focus test card

Make one copy for a published header and one test session. This English worksheet records observed behavior; it is not a WCAG certificate or a production code pattern.

## Setup

| Field | Record |
| --- | --- |
| Public URL | |
| Header/template owner | |
| Date and tester | |
| Browser and version | |
| Operating system and device | |
| Viewport width or device orientation | |
| Physical keyboard or browser responsive view | |
| Intended panel type: disclosure / modal / unknown | |
| Visitor task and destination link | |

If the panel type is unknown, ask its component owner before declaring a focus cycle correct or wrong. A disclosure allows ordinary Tab movement through visible links. A true modal moves focus inside and keeps it there until dismissal.

## State-transition record

Perform one keyboard action per row. Record the exact focused element, not just whether the menu looks open.

| Before | Key/action | Expected visible focus or state | Actual focus or state | Pass / issue / not present | Evidence link |
| --- | --- | --- | --- | --- | --- |
| Closed | Tab to trigger | Named menu button has visible focus | | | |
| Closed | Tab once beyond trigger | Hidden links are not invisible stops | | | |
| Closed with trigger focused | Enter | Panel opens; state reflects open | | | |
| Closed with trigger focused, separate pass | Space | Panel opens; state reflects open | | | |
| Newly open disclosure | Tab | Next visible control receives focus in logical order; often the first link | | | |
| Newly open modal | Check initial focus | Meaningful element inside receives focus | | | |
| Open | Tab through links, then Shift+Tab | Current focus is visible; order makes sense | | | |
| Nested section closed | Activate its button | New links become reachable | | | |
| Nested section open | Collapse its button | Closed links leave the focus sequence | | | |
| Open | Activate available close control, or trigger for a disclosure | Panel closes; focus has logical destination | | | |
| Open, separate pass | Escape | Dismisses where the panel's pattern promises it | | | |
| Just closed | Tab once | Next stop is logical, not a hidden child link | | | |
| Open | Resize or rotate, then Tab | Focus remains findable across breakpoint | | | |

## One defect to hand off

- First transition that fails:
- Starting focus and panel state:
- Exact key sequence:
- Expected focused element or state:
- Observed focused element or state:
- Does the failure block the visitor task? How?
- Screenshot or short recording (without private session data):
- Editor-owned label/order change, or developer-owned component/focus change:
- Owner and target date:

## Retest

- [ ] Same published URL and narrow width checked after the fix.
- [ ] Closed links are absent from the focus path.
- [ ] Open links are reachable in a logical order.
- [ ] Focus remains visible while moving forward and backward.
- [ ] The close route works; a modal can be dismissed without trapping the user.
- [ ] Focus has a logical location immediately after closing.
- [ ] A nested section and breakpoint change were checked if present.
- [ ] The visitor can reach the intended destination.
- [ ] A wide viewport was checked for regression.
- [ ] A physical keyboard on a mobile device was used if available.

## Primary references

- [W3C APG: Disclosure pattern](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/)
- [W3C APG: Disclosure navigation example](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-navigation/)
- [W3C APG: Modal dialog pattern](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/)
- [W3C WAI: Focus order](https://www.w3.org/WAI/WCAG22/Understanding/focus-order)
- [W3C WAI: Focus visible](https://www.w3.org/WAI/WCAG22/Understanding/focus-visible)
- [W3C WAI: No keyboard trap](https://www.w3.org/WAI/WCAG22/Understanding/no-keyboard-trap)
- [W3C WAI: Name, role, value](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value)
- [WebAIM: Keyboard accessibility](https://webaim.org/techniques/keyboard/)
