Don't Move Accessibility Focus

Link to Don't Move Accessibility Focus copied to clipboard
caution

This rule has been deprecated.

WCAG 3.2.2 A WCAG 2.1 Change of Context

The user interface should only change context when the user invoked clear intent.

Supported within:
XML Layouts

Impact

Changing context without explicit interaction can lead to an incredibly confusing experience. Additionally, people will likely have difficulty getting back to where they wanted to be.

Confirmation

  1. Turn on TalkBack
  2. Complete an application flow within the current activity or fragment
  • Inaccessible: Focus was redirected elsewhere. An example may be an alert or automatic carousel.

How to Fix

Changing accessibility focus should not be done without proper interaction with clear intent from the user interface.