Focus management

Manage focus so that everyone can interact efficiently with your app, including those who use a keyboard or switch with your app.

On this page

Overview

What you need to do

Make sure focus moves in a logical, predictable order through your app’s interface. Make focus indicators clearly visible when users navigate with keyboards or other assistive technologies. Prevent focused elements from being hidden behind overlays, sticky headers, or other interface elements.

Meeting the Web Accessibility Standard

When focusable elements receive focus in a logical order that preserves meaning and functionality, it meets WCAG 2 Success Criterion 2.4.3 Focus Order (Level A).

When a user can navigate with a keyboard and see where the focus is, it meets WCAG 2 Success Criterion 2.4.7 Focus Visible .

When a user interface component receives keyboard focus and is not entirely hidden, it meets WCAG 2 Success Criterion 2.4.11 Focus Not Obscured (Minimum) (Level AA).

Why this matters

Poor focus management creates major barriers for people using screen readers, external keyboards, or switch controls. When focus jumps unpredictably or becomes invisible, users lose track of their location in the app. Hidden focused elements make it impossible to know what’s selected or activated, preventing successful task completion.

When this applies

When you need focus order 

When you need visible focus 

When you need unobscured focus 

Design

Note: Both Android and iOS devices have platform-level focus indicator settings for screen reading. iOS devices also have platform-level focus indicator settings for keyboard. The user can choose from a set of colours and make the focus indicator bolder or have higher contrast.

Review your design system to make sure elements work with these user options, without needing the user to switch settings midway. Users want to set up their focus options once and use them system-wide.

For example, a blue button with a blue focus indicator will not have sufficient contrast, but it may work with a different focus configuration.

Checklist for accessible focus management 

Design resources 

For design guidance on accessible focus management for each platform, see:

Development

iOS implementation

For technical guidance on accessible focus management from Apple Developer Documentation, read:

For technical guidance on focus management that meets WCAG, see:

For complete guides on iOS accessibility from Apple Developer Documentation, read:

Android implementation

Testing

Quick test 

These quick steps will help you verify that users can navigate easily using a keyboard or other input devices and always identify which interactive element in your app has focus.

  1. Connect an external keyboard to your device.
  2. Navigate using Tab key — does focus move logically through elements?
  3. Check focus visibility settings for keyboard and screen reading — can you use options to identify what is focused?
  4. Test modal dialogs — does focus stay trapped within the modal?
  5. Try overlays and menus — do they hide focused elements?
  6. Use screen reader — does focus order match the logical reading order?
  7. Test dynamic content — does focus move appropriately when content changes?

Testing resources 

These tools and guides help you validate focus management across different platforms and assistive technologies.

How to use a keyboard and switch with iOS

How to use a keyboard and switch with Android

How to test with VoiceOver on iOS

How to test with TalkBack on Android