Using user interface components that are highlighted by the user agent when they receive focus

Important Information about Techniques

See Understanding Techniques for WCAG Success Criteria for important information about the usage of these informative techniques and how they relate to the normative WCAG 2.1 success criteria. The Applicability section explains the scope of the technique, and the presence of techniques for a specific technology does not imply that the technology can be used in all situations to create content that meets WCAG 2.1.

Applicability

All technologies with user-agent provided focus highlighting.

This technique relates to Success Criterion 2.4.7: Focus Visible (Sufficient).

Description

The objective of this technique is to ensure that the focused component can be visually identified by the user by relying on user agent support. It is common for user agents to highlight standard controls in some way when they receive focus. UAAG-conformant user agents do so when they satisfy checkpoint 10.2 "Highlight selection, content focus, enabled elements, visited links". When authors use standard controls for which the user agent provides this support, users are informed of the focus location in a standard, predictable way.

Examples

Resources

Resources are for information purposes only, no endorsement implied.

Tests

Procedure

For each focusable component in the Web page:

  1. Set focus to the control
  2. Check whether the user agent has highlighted the control in some way

Expected Results

  • #2 is true