Not sure where to start?
Start with a free analysis of your website's accessibility.
GET STARTEDDigital Accessibility Index: Learn where the world’s leading brands fall short on accessibility.
See ReportWhen any part of a page receives focus, it shouldn't initiate a "change of context". "Change of context" in this sense means "major changes in the content of the Web page that, if made without user awareness, can disorient users who are not able to view the entire page simultaneously". This could include changes of user agent, of viewport (usually the active window), of focus, or of content that changes the meaning of the page.
Examples of violations would be a page that immediately and without user action opens a new window and shifts the focus to that window on page load, or a script that moves the focus to an different element once a certain element received focus.
3.2.1 On Focus: When any component receives focus, it does not initiate a change of context.
Use user activation (an action) rather than user focus (a state) as the trigger for a change of context. In other words, the user has to explicitly choose the change of context, rather than having it happen automatically as soon as an element was selected. For example: