Skip to content

This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.

Custom indicator

Level: Foundational

A custom focus indicator is used with sufficient size, change of contrast, adjacent contrast, distinct style and adjacency.

Methods

There are various ways of creating a focus indicator, the following techniques provide custom ways of creating and testing each category of focus indicator.

Line or bounding box indicators

Technology: HTML

A bounding box focus indicator using outline, border or box-shadow.

Change of color

The authored focus indicator uses a change of color within the control.

Icon/shape

The authored focus indicator uses the addition/removal of an icon or shape.

Tooltip/additional content

Display a tooltip to indicate the user interface component with focus.

Size change

A change of size of the focusable element to show focus.

Combination indicators

If an indicator uses a combination of techniques, one of those techniques must meet the test.

Other indicators

Using a custom indicator that does not fit into any other method.