accessibility-guidelines

This document is in beta. Help us by reporting issues via Github or email

Back to the overview page

Changes on focus

On this page:


Summary

Just navigating to an interactive control with the keyboard shouldn’t trigger any action, and shouldn’t move the keyboard focus somewhere else.


Requirements

When a user interface element receives keyboard focus (for example when users reach it by pressing the ‘Tab’ key, or when they click on it), that should not cause any big change to happen, such as:

Such changes only occur when initiated by the user (e.g. upon activation of a button or link).

Common mistakes

Why?

This stops unexpected things happening without screen reader and screen magnifer users being aware of it.

Official wording in the Web Content Accessibility Guidelines

3.2.1 On Focus: When any component receives focus, it does not initiate a change of context. (Level A)

See the W3C’s detailed explanation of this guideline with techniques and examples.


Guidance for Design


Guidance for iOS

This section needs more content. Contribute via Github or email.


Guidance for Android

This section needs more content. Contribute via Github or email.


Guidance for Flutter

This section needs more content. Contribute via Github or email.


Guidance for Web


More info

Sources

Contribute

This document is in beta. Help us by reporting issues via Github or email