Skip to main content
Home
Back to Guidelines

What is On Focus?

Changing focus does not initiate a change of context.

Changing focus does not initiate a change of context.

  • Keyboard and screen reader users.
  • People who need predictable interactions.
  • Users who benefit from visible focus and clear labels.

Good vs Bad Examples

Use the tabs to compare the accessible pattern with the example to avoid.

Search

Field focus shows a hint without changing page context.
html live code
<input type="text" aria-label="Search" />
Why this is correct (project manager logic):
  • Provides an accessible and predictable interaction.
  • Works better for keyboard and assistive technology users.
  • Matches the intended WCAG requirement for this page.

Implementation Checklist

Progress0 / 5 completed (0%)

Knowledge Check

Answer Yes or No to test your understanding of on focus.

Score: 0 / 3 · Answered: 0 / 3

Does the good example demonstrate on focus correctly?

Is the bad example acceptable for on focus?

Should this pattern be checked with keyboard and screen reader testing?