1 Why this criterion exists
When a page uses a sticky header, that header stays pinned to the top of the viewport as the user scrolls. This is convenient for sighted mouse users, but it creates a quiet problem for anyone navigating with a keyboard. When focus moves to an element near the top of the document, the browser scrolls that element into view. If a fixed header occupies that same space, the element can land underneath the header, hidden from sight even though it technically holds focus.
WCAG 2.4.11 Focus Not Obscured (Minimum) exists because focus that cannot be seen is focus that cannot be used reliably. The criterion sits under the Operable principle and requires that when a component receives keyboard focus, it is not entirely hidden by author-created content. A sticky header is author-created content, so it counts. The minimum level allows a focused element to be partially obscured as long as some of it remains visible, while the enhanced level demands full visibility. The rule protects the basic contract of keyboard navigation: if you can move focus somewhere, you should be able to see where it went.
This is not about aesthetics or preference. It is about whether a keyboard user can perceive the current focus position at all. Without that, every subsequent action becomes guesswork.
2 Who it protects
The people most affected are keyboard-only users, including people with motor impairments who cannot use a mouse or trackpad. For them, the keyboard is the primary input, and visible focus is the only feedback that tells them which control will activate when they press Enter or Space. If a sticky header covers that control, they lose their place and may trigger the wrong action.
Switch access and voice-control users share the same dependency. Switch users step through focusable elements one at a time, often slowly, and a hidden focus target breaks their mental model of the page. Voice-control users speak commands tied to visible labels; if the focused element is hidden under a header, they cannot confirm what is selected. Screen reader users are also affected, because many rely on a combination of spoken output and visual focus tracking, especially those with partial sight.
People with low vision who magnify the screen are hit particularly hard. At high zoom, the sticky header can consume a large share of the viewport, leaving very little room for content. A focused link that scrolls under the header may be invisible in the magnified view even though it exists in the document. Cognitive disabilities matter too: losing visual focus increases confusion and the effort needed to recover. The criterion protects anyone whose navigation depends on knowing, at a glance, where they are.
3 How conformance is measured
Conformance for 2.4.11 is measured by moving keyboard focus to each interactive element and checking whether the element remains visible. The key word in the minimum level is entirely: a focused component must not be completely hidden by author content. Partial obscuring is tolerated at AA, but the focused item must still be at least partly perceivable. At the enhanced level, no part of the focused component may be hidden.
The measurement is behavioral, not structural. Automated tools can flag some cases, but they cannot reliably determine whether a sticky header covers a focused element across all scroll positions and viewport sizes. A passing automated scan does not prove conformance. Evaluators instead tab through the interface, observe the scroll behavior, and judge visibility at each step. They also test at different zoom levels and viewport dimensions, because a header that is harmless on a wide desktop can swallow most of a narrow mobile screen.
Importantly, the criterion applies to author-created content. If the browser or operating system draws an overlay, that is outside the author's control. But a header the site itself pins to the top is squarely the author's responsibility, and it must not fully obscure the element that currently has focus.
4 Where teams usually slip
The most common failure is a fixed header combined with anchor links or in-page navigation. When a user activates a skip link or a table-of-contents link, the browser jumps to the target and aligns it with the top of the viewport. The sticky header then sits directly over that target. The user pressed a link expecting to arrive at a heading, and instead lands on something hidden. This pattern appears constantly on documentation sites and long marketing pages.
A second slip is scroll-padding. Teams add a sticky header but never reserve space for it, so any programmatic scroll or focus-driven scroll places content under the header. The fix is straightforward once recognized, but it is easy to forget because the problem only appears during keyboard navigation, which many developers never test. Mouse users scrolling manually rarely notice, since they can adjust the scroll position themselves.
A third issue is headers that grow or animate. A header may start small and expand on scroll, or reveal a secondary toolbar, changing its height after focus has already moved. Dynamic height makes static offsets unreliable. Finally, some teams treat the sticky header as decoration and assume assistive technology ignores it. It does not. The header is real content in the layout, and it can obscure real focus targets. These gaps cluster around the same root cause: the sticky header was designed for pointer users and never evaluated from the keyboard.
5 Fixing it in your markup
The most reliable fix is to reserve space equal to the sticky header's height so that scroll targets and focused elements never land beneath it. In CSS, scroll-padding-top on the scrolling container offsets where the browser aligns a scrolled-into-view element. Setting it to the header height, plus a little breathing room, keeps focused items clear of the header. You can also apply scroll-margin-top to individual focusable targets, which is useful when only some elements need the offset.
Keep the sticky region as short as practical. A slim header obscures less and leaves more room for content, which matters most at high zoom. Consider letting the header shrink or hide when the user scrolls down and reappear when they scroll up, so it is out of the way during reading and navigation. Avoid stacking multiple sticky bars, because their combined height multiplies the problem.
If the header must remain tall, provide a mechanism to dismiss or collapse it, and make sure that mechanism is itself keyboard accessible. Do not rely on hover-only behavior. Test that skip links, in-page anchors, and focus movement all land on visible targets. When the header height changes dynamically, recalculate the offset or use a layout approach that keeps the reserved space in sync. The goal is simple: whatever receives focus should be visible, not buried under a pinned bar.
6 Testing before you ship
Start with a keyboard-only pass. Put the mouse aside, press Tab repeatedly from the top of the page, and watch the focus indicator. Note every time the focused element appears under the sticky header or is clipped by it. Then test in-page links and skip links, since those trigger the scroll behavior that most often exposes the bug. Repeat the pass at several viewport widths and at 200 percent zoom, where the header takes a larger share of the screen.
Automated tools are a useful first filter but not a verdict. Accessibility scanners can detect some obscured-focus situations and will flag missing scroll offsets in certain configurations, but they cannot model every scroll position. Treat their output as a prompt to test manually, not as proof of conformance. Browser developer tools help you inspect computed scroll-padding and scroll-margin values and confirm the reserved space matches the header height.
Build the check into your workflow. Add keyboard focus visibility to your definition of done for any component that uses position sticky or fixed. Include a sticky-header scenario in your manual test script, and re-run it whenever header height, typography, or spacing changes. Because this criterion is about behavior under navigation, the only trustworthy test is a person tabbing through the page and confirming that focus stays visible.
7 Frequently asked questions
Does a sticky header always fail 2.4.11? No. A sticky header only fails when it entirely hides the element that currently has keyboard focus. If focused elements remain at least partly visible, the minimum level is satisfied. The enhanced level is stricter and requires full visibility, so a header that clips even part of a focused control would fail there.
Is this only a mobile problem? No. Narrow viewports and high zoom make it worse because the header occupies a larger proportion of the screen, but the failure occurs on desktop too whenever a focused element scrolls under a fixed bar. Any viewport where the header overlaps the focus target is affected.
Can automated tools catch it? Partially. Scanners may flag some obscured-focus patterns, but they cannot evaluate every scroll position or dynamic header height. Manual keyboard testing remains necessary, especially for skip links and anchor navigation.
What about cookie banners or chat widgets? Those are also author-created overlays, and if they cover the focused element they raise the same concern. The principle is consistent: content the site places over the page must not fully hide the element that has focus.
Does scroll-padding-top fix everything? It fixes the common case of scroll-aligned targets, but dynamic headers, nested scroll containers, and overlays may still cause problems. Use it as a foundation, then verify with real keyboard navigation.