Sequential Focus Order Check

RuleSets of AccessMonitor - the validator of web accessibility practices

Sequential Focus Order Check

Description

The “Sequential Focus Order Check” evaluates whether elements in the DOM follow a logical, meaningful focus sequence when navigated via the keyboard.

Example outcome

I found 1 element in the sequential focus order.

Impact

Fixes

To address inappropriate sequential focus order:

  1. Locate the elements that are focused in an incorrect order.
  2. Rearrange them in the source code so that their order in the DOM matches how they appear on the screen.
  3. Additionally, don’t manually assign tabindex values unless you must. Using tabindex="1" overrides natural focus order and can cause major confusion.
  4. Use tabindex="0" sparingly for custom elements. This allows the custom element to be focusable while maintaining the natural flow.

Resources