Focused element is hidden behind a sticky header

  • WCAG 2.4.11 Focus Not Obscured (Minimum), level AA
  • Serious
  • Interaction
  • Automated
  • Rendered pass

Why it matters

When a fixed header or banner covers an element as you tab to it, you cannot see what is focused.

How to fix it

Add scroll-padding-top equal to the height of the sticky element, so focused items scroll into clear view.

html { scroll-padding-top: 5rem; }

Read the W3C guidance: Understanding 2.4.11 Focus Not Obscured (Minimum).

Related rules

Find this on your own site. A11yMate scans every page and lists where it happens. See pricing or browse all rules.