This document is in beta. Help us by reporting issues via Github or email.
On this page:
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).
This stops unexpected things happening without screen reader and screen magnifer users being aware of it.
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.
Make sure you don’t design an interaction, where moving the keyboard focus to an element causes any of the following to happen:
focus
or blur
events do not cause dis-orientating events such as:
HTMLElement.focus()
methodThis document is in beta. Help us by reporting issues via Github or email.