Focus Management: Navigation without a Mouse
Learn to design and manage navigation focus in your digital product to ensure a smooth experience for keyboard users, screen readers, and assistive technology.
Tab), screen readers, and anyone not using a mouse.Why the Designer Must Manage Focus?
Imagine walking into a dark room with only a flashlight. The area your flashlight illuminates is “the focus.” If you move the flashlight and, suddenly, the light disappears or jumps to the next room without sense, you’ll feel lost and frustrated.
In an interface, focus works the same way. If the user presses Tab and the cursor disappears or jumps from the main menu to the footer without passing through the content, the interface is broken for them. Good focus management is not a technical detail; it is the foundation of usability.
The 4 Pillars of Good Focus Management
For your product to be truly accessible, you must work on these four fronts:
1. Visible Focus Indicator (Focus Ring)
Never remove the border (outline) that appears around an element when it is selected with the keyboard.
- Microinteraction: You can customize the design (change color or thickness to fit your brand), but it must always be clearly visible. An invisible focus is an unusable interface for millions of people.
2. Logical Tab Order
Focus must follow the natural reading order of the page (from top to bottom and left to right in the West).
- Danger: If you design a two-column form in Figma, make sure to document whether the user should tab through the entire left column first or go row-by-row from left to right.
3. Focus Traps
When a modal element (a confirmation pop-up window) is opened, focus must be trapped within that modal.
- If the user presses
Taband focus leaves the modal to select something “behind” it, a blind person won’t know what happened, and their screen reader will go crazy.
4. Focus Return
When a modal element is closed, focus should return exactly to the button that opened it. If the user closes the modal and focus returns to the beginning of the page, they will have to tab through the entire interface again to get back to where they were.
Special Flows: Designing Focus Movement
As a product designer, you must define when the system should move focus automatically:
- Page Load: If a user arrives at a “Search” page, do we want focus to already be in the search field? (Be careful with this! It can be annoying if not expected).
- Error Validation: If clicking “Submit” results in an error, move focus to the first failed field so the user can start fixing it immediately.
- Dynamic Content Loading: If clicking a button causes a new block of information to appear, ask yourself if focus should jump there to notify the user that something has changed.
Focus Handoff: Specifications for the Development Team
In your Figma files, don’t limit delivery to Default and Hover states. Start including the Focus state. Use annotations to indicate the path the tab key should follow (1, 2, 3...) if the visual structure is complex and doesn’t exactly match the linear order of the code.
Mentor’s Tips
- Try the “Keyboard Day”: Spend a whole day working on your computer without touching the mouse. You’ll quickly realize which parts of your product are unusable and where focus is failing.
- Visual Consistency: Use the same focus indicator style throughout the application so the user learns to recognize it quickly.
- Don’t reinvent Tabbing: Follow browser standards. Don’t try to capture keys in strange ways unless you’re building a video editor or an advanced design tool.
Useful Resources and Tools
- W3C: Keyboard Navigation Best Practices
- WebAIM: Keyboard Accessibility
- Deque University: Focus Management Guide
- Articles: The Power of Focus in UX Design
accessibility-tree aria-vs-semantics tab-order-strategy screen-reader-testing identity-roles-states