Skip to content
BENIBIX Learn

Focus Indicator

Design♿ AccessibilityKeyboard and Touch

Also known as Focus Ring, Focus Outline, Visible Focus

The ring that shows which control the keyboard is on right now.

Think of it like

It is like a torch beam in the dark. It shows exactly where you are pointing.

Example

Emma tabs through a site with no focus ring. She presses Enter and buys the wrong item.

Why it matters

Without it, keyboard users cannot see where they are, so they cannot use the page.

Definition

A focus indicator is the ring or outline you can see around the control the keys are on right now. It is the pointer for people who use the keys. Browsers draw one by default, and WCAG level AA asks that it is always seen. Designers often take it off because it looks messy. That leaves key users lost. A clear, strong ring can be styled to match the brand instead.

Example code

css
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
This shows the ring when you use the keys. It does not show it on each mouse click.

Common mistake

Writing outline: none to hide the ring. Restyle it instead of removing it.

Key takeaways

  1. 1
    The keyboard's pointer. Shows where you are.
  2. 2
    Always visible. Never removed.
  3. 3
    Style, do not hide. Make it match the brand.