Fix keyboard navigation and tab order
Some people use a keyboard because they have to, and some because it is faster. Either way, a broken tab order or an invisible focus indicator loses them. The test takes one minute.
The one-minute test
- Put your mouse away.
- Press Tab repeatedly and watch where the focus goes.
- Press Enter or Space on buttons, and Esc to close any pop-up.
- Ask yourself: can I reach everything, in a sensible order, and can I always see where I am?
What to look for
- Unreachable controls. Clickable things made from a plain
<div>are skipped by Tab. Use a real<button>or<a>. - Focus jumping around. Tab should follow the reading order. This usually breaks when the page's HTML order differs from how it looks.
- An invisible focus indicator. Removing the outline with
outline: nonewithout a replacement hides where focus is. - Traps. A pop-up that you cannot leave with Esc, or focus that cannot get past a widget.
- Forgotten focus after actions. After opening a dialog, focus should move into it; after closing, back to where it was.
How to fix it
- Use real
<button>,<a>,<input>and<label>elements. - Leave the HTML order matching the visual order. Avoid positive
tabindexvalues; usetabindex="0"only for custom controls and-1for focus set by script. - Keep a visible focus style on every control.
CSS
:focus-visible {
outline: 3px solid #1a57c8;
outline-offset: 2px;
}
Why it matters beyond keyboards
Keyboard access is part of the Web Content Accessibility Guidelines, along with visible focus and a logical focus order. Accessible apps also tend to work better with voice control and screen readers.
Want this checked on your app?
In the complete check, App Investigators presses Tab through your pages and reports controls it cannot reach, focus that jumps back up the page and focus that gets stuck.
We email you once when a spot opens. No spam, and you can ask us to remove you any time at support@appinvestigators.com.
Related guides
- Fix 200% zoom problems and small tap targets
- How to test a vibe-coded app before you launch
- Pre-launch checklist for an AI-built app
Last updated 2026-11-24. This guide describes common problems and fixes. It is not a guarantee that any app is secure or free of bugs.