accessibility-guidelines

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

Back to the overview page

Changes on focus

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


On this page:


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 Web


More info

Sources

Contribute

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