Skip to main content
Home
Back to Guidelines

What is Focus Visible?

A visible focus indicator should always show keyboard users where focus has moved, even when the page contains forms, links, or dense content.

Clear focus styling helps prevent confusion and makes navigation more reliable for people using keyboards, switch devices, and other non-pointer input methods.

  • Make the focus ring easy to spot on every interactive control.
  • Use enough contrast so the indicator stands out from the page.
  • Keep focus visible when users move through content with the keyboard.

Good vs Bad Examples

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

Good Example 1 – Visible Focus Indicator Provided

Button with a clear, visible keyboard focus outline.
html live code
<button className="focus:ring-4 focus:ring-blue-600 focus:outline-none">Sign In</button>
Why this is correct (developer logic):
  • Focused elements have a clear visual indicator.
  • Keyboard users can easily see where the focus is.
  • The interaction is easy to track and understand.

Good Example 2 – High Contrast Focus Indicator

Link with a high-contrast focus indicator that is clearly visible against the page content.
html live code
<a href="#" className="focus:ring-4 focus:ring-blue-600 focus:outline-none">accessibility guidelines</a>
Why this is correct (developer logic):
  • The focus indicator has enough contrast to stand out.
  • Users with low vision can see where focus moved.
  • The visual indication is easy to distinguish from the page content.

Implementation Checklist

Progress0 / 5 completed (0%)

Knowledge Check

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

Score: 0 / 5 · Answered: 0 / 5

Does the good example demonstrate focus visible correctly?

Is the bad example acceptable for focus visible?

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

Should the focus indicator remain visible on every interactive control?

Is a focus state acceptable if it is too low-contrast to notice clearly?