# Visible focus

> Keyboard users need to see where they are, and a hidden or covered focus indicator leaves them lost.

Area: Accessibility. Evidence behind the answer: Settled. Last checked November 12, 2026.
Page: https://uxreference.com/accessibility/focus-visible

## The answer

Always show where keyboard focus is, and never cover it.

- **Settled, WCAG AA.** Show where keyboard focus is on everything that works by keyboard. (https://uxreference.com/accessibility/focus-visible#rule-1)
- **Settled, WCAG AA.** Don’t let sticky bars, banners or other layers completely hide the focused control. (https://uxreference.com/accessibility/focus-visible#rule-2)

## The problem

Sighted people using a keyboard need to see where they are, and a hidden or covered focus indicator leaves them lost.

## How to decide

None. Requirements. How the indicator looks is out of scope for this reference; WCAG 2.4.13 (AAA, no floor) covers its size and contrast.

## Every rule

Each rule has a grade: Settled (required by WCAG AA or law, or replicated research), Strong, Moderate, Weak, or Unsettled (use the stated default until the evidence settles).

#### Rule 1. Settled, WCAG AA

Whatever can be operated by keyboard must show where keyboard focus is.

- Applies when: Any keyboard-operable interface.
- Based on: Standard or law
- Principle: Work for everyone

Why: WCAG 2.2 success criterion 2.4.7 Focus Visible, level AA. Removing the indicator by styling, or removing focus by script, are listed failures.

Sources: [Understanding SC 2.4.7 Focus Visible (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/focus-visible.html)

Link: https://uxreference.com/accessibility/focus-visible#rule-1

#### Rule 2. Settled, WCAG AA

Do not let content you place on top, such as sticky bars or banners, entirely hide the focused control.

- Applies when: Fixed or overlaid content.
- Based on: Standard or law
- Principle: Work for everyone

Why: WCAG 2.2 success criterion 2.4.11, level AA. See [Focus management on open and close](https://uxreference.com/dialogs/focus-management).

Sources: [Understanding SC 2.4.11: Focus Not Obscured (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html)

Link: https://uxreference.com/accessibility/focus-visible#rule-2

#### Rule 3. Settled, WCAG AA

If you remove the browser's default indicator, supply your own that stays for as long as focus does.

- Applies when: Custom styling of focus.
- Based on: Standard or law
- Principle: Work for everyone

Why: Same criterion: the browser default is sufficient, and removing it without replacement is failure F78.

Sources: [Understanding SC 2.4.7 Focus Visible (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/focus-visible.html); [Keyboard Accessibility (WebAIM techniques)](https://webaim.org/techniques/keyboard/)

Link: https://uxreference.com/accessibility/focus-visible#rule-3

#### Rule 4. Moderate, WCAG AA

Showing the indicator only for keyboard use is allowed; it is not required after a pointer click.

- Applies when: Deciding when focus shows.
- Based on: Standard or law
- Principle: Be consistent

Why: WCAG says an indicator for pointer users is not normatively required. The selectors specification suggests browsers show focus for keyboard navigation and on text fields, and not when a pointer focuses a control that takes no typing. Suggested browser behavior, so no floor.

Sources: [Understanding SC 2.4.7 Focus Visible (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/focus-visible.html); [Selectors Level 4, the :focus-visible pseudo-class (Working Draft)](https://www.w3.org/TR/selectors-4/); [:focus-visible (MDN Web Docs)](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)

Link: https://uxreference.com/accessibility/focus-visible#rule-4

#### Rule 5. Weak

When a script moves focus, show the indicator on the new element if it was showing before, and on anything that takes focus as it appears.

- Applies when: Script-managed focus.
- Based on: Standard or law
- Principle: Be consistent

Why: Advisory wording in a specification still in progress; browser documentation leaves it to browser judgment.

Sources: [Selectors Level 4, the :focus-visible pseudo-class (Working Draft)](https://www.w3.org/TR/selectors-4/); [:focus-visible (MDN Web Docs)](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)

Link: https://uxreference.com/accessibility/focus-visible#rule-5

## Accessibility requirements

- WCAG 2.4.7 (AA), 2.4.11 (AA). 2.4.13 is AAA and sets no floor here. (https://www.w3.org/WAI/WCAG22/Understanding/focus-visible.html)

## Common mistakes

- Removing the outline with nothing in its place.
- A cookie banner that sits over the focused link.
- An indicator that flashes and disappears.

## Still open

- Do sighted keyboard users lose their place without an indicator, and how often? The standard says so; no study was found.
- Does an indicator that appears only for keyboard use confuse people who switch between mouse and keyboard? Asserted in browser documentation, not tested.

## Related problems

- [Keyboard operation](https://uxreference.com/accessibility/keyboard): Make everything work from the keyboard, in a sensible order, with the keys people expect.
- [Focus management on open and close](https://uxreference.com/dialogs/focus-management): Move focus into a dialog when it opens, and back to the control that opened it when it closes.
- [Skip links](https://uxreference.com/navigation/skip-links): Give keyboard users a way past repeated blocks: a skip link first in the focus order, and a heading for each section.

## Sources

- [Understanding SC 2.4.7 Focus Visible (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/focus-visible.html). W3C WAI, n.d., normative standard (Understanding document, informative).
- [Understanding SC 2.4.11: Focus Not Obscured (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html). W3C WAI, n.d., normative standard (Understanding document, informative).
- [Keyboard Accessibility (WebAIM techniques)](https://webaim.org/techniques/keyboard/). WebAIM, 2026, practitioner guidance (no study or data cited).
- [Selectors Level 4, the :focus-visible pseudo-class (Working Draft)](https://www.w3.org/TR/selectors-4/). W3C CSS Working Group, 2026, web specification (Working Draft of January 22, 2026; heuristics are non-normative suggestions).
- [:focus-visible (MDN Web Docs)](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible). Mozilla (MDN), 2026, browser documentation.

---
From Solved Problems in UX by Athen Pellicci, an evidence-graded reference of web interface problems. CC BY 4.0. https://uxreference.com/
