Skip to content
Design systems and accessibilityguide

How to avoid clipping the focus ring around an icon button

By SkeuDesign Editorial Team1 min read

Answer in brief

Give keyboard focus a visible indicator and enough room inside clipping ancestors. Exercise the actual toolbar because a ring that works in isolation may disappear inside a rounded container.

Inspect the first and last controls

Tab along a horizontally scrolling toolbar. Watch each edge of the outline at the first and last icons. Add space within the clip or use an inset treatment with adequate contrast if the ring is cut off.

Test focus after sideways scrolling

Focus a control near the end of a long toolbar, scroll the strip until the control is close to its edge and press Shift+Tab. Observe whether the next focused item and its outline come into view. A visible ring around an offscreen button offers little help in locating the current action.

Sources

  1. [1] :focus-visible CSS pseudo-class - CSS — MDN Web Docs, accessed November 23, 2026

Frequently asked questions

Can the focus indicator be shown only for keyboard-like interaction?

The :focus-visible selector lets the browser decide when to show the indicator. Check the result with the input methods your interface supports.