Accessibility Certified – Home

2.4.11 Focus Not Obscured (Minimum)

When an element receives keyboard focus, it must not be completely hidden by content the author added, such as sticky headers or banners.

Level AAPrinciple 2: Operablenew in WCAG 2.2

What does it mean?

Sticky headers, sticky footers, cookie banners, chat buttons and other fixed layers can cover the element that currently has focus. When a keyboard user tabs to a link and it slides underneath a sticky header, they can no longer see where they are.

At this level, the focused element must not be entirely hidden by author-created content; being partly covered is still allowed (the stricter AAA criterion 2.4.12 forbids that too). Content that the user opened, such as an expanded menu, does not cause a failure if the user can close it without moving focus, for example with Escape.

Who does it help?

  • Sighted keyboard users who need to see the focused element
  • People using screen magnification, where fixed layers take up a large part of the view
  • People with cognitive disabilities who lose track when focus disappears

Common failures

  • A sticky header that covers links and form fields when the page scrolls to them by Tab
  • A cookie banner fixed to the bottom of the screen that hides the buttons in the footer
  • A fixed chat or feedback button that sits over the last link on the page
  • A non-modal dialog that stays open over content and does not close with Escape

How we test it

  • evidence Evidence: our scanner collects material such as screenshots, lists and measurements.

Test question: Is a focused element ever completely hidden (e.g. by a sticky header or cookie banner)? Flagged cases listed.

A person decides every criterion. No criterion ever passes automatically.

How to fix it

Problem
.site-header { position: sticky; top: 0; height: 5rem; }
/* focused elements scroll under the header */
Better
.site-header { position: sticky; top: 0; height: 5rem; }

html {
  scroll-padding-top: 6rem;    /* header height plus space */
  scroll-padding-bottom: 5rem; /* room for a fixed bottom bar */
}

scroll-padding makes the browser keep focused elements clear of the sticky header and bottom bar when it scrolls them into view.

Practical tips

  • Tab through long pages with all banners open, at different window sizes and at 200% zoom.
  • Make cookie banners and similar layers closable and non-covering once a choice has been made.

Guides and patterns on this

Official source

Understanding WCAG 2.2 at the W3C: 2.4.11 Focus Not Obscured (Minimum)

How does your website do on this criterion?

The free check tests your home page automatically; the audit decides all 55 criteria.

Free checkAll criteria