In short and in plain language
Many people use web pages with a keyboard. They press the Tab key to jump from link to link. A frame shows where they are.
Some bars stay at the edge of the screen when you scroll. This can be the top bar or a bar with a sale. Such a bar can cover the link with the frame. Then you do not know where you are.
The rule 2.4.11 says this must not happen. Some part of the link must be seen. A stricter rule wants the whole link to be seen.
The fix is a line in the code. It is called scroll-padding. It keeps space free at the edge, as tall as the bar. Then the link moves up above the bar.
A chat that you open yourself may cover the link for a short time. But you must be able to close it with a key. To test it, you go through the page with the Tab key. First down, then up again.
A customer tabs through the category page of an online store. The sticky header with search and cart stays at the top, a bar with a shipping notice sits at the bottom, and the chat button waits in the lower right corner. After a few steps, focus lands on the “Details” link of a product card, and that very link sits underneath the bar. Nothing visible has moved on screen; anyone working with a keyboard no longer knows where they are. WCAG 2.2 covers this case in success criterion 2.4.11 “Focus Not Obscured (Minimum)” at level AA (W3C, WCAG 2.2), and the W3C documents a sticky header or footer that completely hides the focused element as failure F110 (W3C, F110). This article shows which fixed layers in a store hide the focus, how to test for it systematically with the Tab key, when content opened by the user such as a chat window is exempt, how scroll-padding following technique C43 keeps the space clear, and where the line to 2.4.12 and 2.4.7 runs.
Key takeaways
- Success criterion 2.4.11 (level AA) requires that a focused element is not entirely hidden by content of the page; partial overlap is enough for AA, only 2.4.12 (AAA) requires full visibility (W3C, WCAG 2.2).
- Typical causes are sticky headers, sticky footers and non-modal dialogs; the W3C documents a bar that completely hides the focused element as failure F110 (W3C, Understanding 2.4.11).
- The fix following technique C43: set
scroll-paddingon the scrolling container to the height of header and bar so that focused elements scroll into the free area (W3C, C43). - Testing is manual: forward with Tab and backward with Shift+Tab through every page template, asking at each stop whether the focused element is entirely hidden (W3C, F110).
- A chat window the user opened may hide the focus if the element can be revealed without another Tab step, for example with Escape; the closed chat button counts in full (W3C, Understanding 2.4.11).
- EN 301 549 V4.1.1 from September 2026 contains 2.4.11 as clause 9.2.4.11; for the BFSG, V3.2.1 based on WCAG 2.1 remains the reference until the Official Journal cites the new version (AccessibleEU).
What 2.4.11 requires and what it does not
The normative text is short: when a user interface component receives keyboard focus, it must not be entirely hidden by content the author of the page created (W3C, WCAG 2.2). The criterion sits at level AA and is one of the 9 success criteria (W3C, What's New in WCAG 2.2) that WCAG 2.2 adds over WCAG 2.1; WCAG 2.2 has been a W3C Recommendation since 5 October 2023 (W3C, What's New in WCAG 2.2). Two terms carry the rule. “Entirely” means that an element of which some part is still visible passes at level AA. The W3C deliberately allows this partial overlap because today's responsive layouts can hardly avoid it altogether, but it advises keeping the degree and frequency as low as possible (W3C, Understanding 2.4.11). “Author-created” means layers that the website itself brings along: header, bar, chat button or banner.
Two notes narrow the criterion. If content in a configurable interface can be moved by the user, only its initial position counts for testing. And content the user opened may hide the focused element if that element can be made visible again without advancing the focus (W3C, WCAG 2.2). The second note is decisive for stores with a chat and a mini cart; a separate section further down is devoted to it.
One point matters for testing: 2.4.11 evaluates the component, not the focus indicator. A ring drawn outside a link does not count as part of the link, unless the indicator sits inside the element or focus is shown by a change to the element itself. If only the outer ring remains visible above the bar, the link still counts as hidden. Conversely, the W3C notes that a fully obscured focus indicator would likely fail 2.4.7 “Focus Visible” (W3C, Understanding 2.4.11). How common weak indicators are is shown by the Web Almanac: 67 percent (Web Almanac 2025) of the sites examined explicitly remove the default focus outline with CSS. Anyone replacing the outline should therefore plan it so that it stays recognizable next to the element and near sticky bars.
Who relies on visible focus
A screen reader announces the focused element whether or not it is visible on screen. The criterion therefore protects above all people who can see and still do not use a mouse. The W3C names people who operate a keyboard or devices that use the keyboard interface, such as speech input, sip-and-puff software, on-screen keyboards and scanning software (W3C, Understanding 2.4.11). Add people with low vision who work with magnification, because magnification shrinks the visible portion of the screen, and people with attention or short-term memory limitations who need to see quickly where the focus is.
A WebAIM survey received 248 valid responses from people with low vision (WebAIM 2018). 60.4 percent (WebAIM 2018) say they always or often navigate web pages with the keyboard, and 48.4 percent (WebAIM 2018) frequently use screen magnification software or the magnification built into their operating system. The survey dates from September 2018, and according to WebAIM its sample was not controlled, so it may not represent all users with low vision. It does show that keyboard and magnification often come together in this group: at high magnification the screen shows only a small part of the page, and a bar that is a thin strip at normal size then takes up a large share of it.
In its introduction to WCAG 2.2, the W3C describes the situation from the perspective of a reporter with a repetitive stress injury who uses speech recognition software: a big banner sits across the bottom at all times, and when he moves focus to items, some of them are hidden behind it (W3C, What's New in WCAG 2.2). The example shows that the criterion does not only concern keyboard users in the narrow sense but any input that runs through the keyboard interface.
Which layers in a store hide the focus
The W3C names three typical causes: sticky footers, sticky headers and non-modal dialogs (W3C, Understanding 2.4.11). The failure description F110 puts it more generally: any sticky content that moves with the viewport can obscure other elements on the page, including the controls a user tabs to (W3C, F110). In an online store several of these usually appear at once, and their heights add up.
| Layer | Typical position | When it hides focus | First fix |
|---|---|---|---|
| Sticky header with search and cart | top, full width | when tabbing backward with Shift+Tab | scroll-padding-top set to the header height |
| Promo or notice bar | above the header or at the bottom edge | when tabbing forward, as soon as the target lands under the bar | scroll-padding set to the bar height, bar can be closed |
| Mobile add-to-cart bar on the product page | bottom, full width | for links and fields in the lower part of the window | scroll-padding-bottom and room at the end of the page |
| Chat button | bottom right corner | for small targets at the right edge, such as pagination links | keep a gap to the content or reserve a free margin |
| Open chat window or mini cart | right side, on top of the content | when focus leaves the window and keeps moving behind it | Escape closes it, or focus stays in the window |
| Cookie banner before a choice is made | bottom or center | as long as the banner is not modal | make it modal or use scroll-padding |
Promo bars with a countdown also touch criteria on time limits and motion; how to let users pause them and where scroll-padding belongs there is covered in the article on countdowns, timers and pop-ups in Christmas promotions. The consent dialog is treated in detail in the article on accessible cookie banners. This article is about how all layers on a page interact, because F110 rarely comes from one bar alone but from the sum: the header, a notice bar above it, the cart bar at the bottom and the chat button in the corner. Each layer often comes from a different source, and none knows the height of the others.
Failure F110: when the bar hides the target completely
F110 describes two examples. In the first, the page has a sticky footer that stays at the bottom of the viewport and is tall enough to completely cover the focused element as the user tabs down the page. In the second, a sticky header covers the element as the user tabs up (W3C, F110). The direction is not a detail: when tabbing forward, new targets scroll in from below, when tabbing backward from above. A page can therefore pass in one direction and fail in the other.
The test procedure in the failure description is correspondingly simple: tab through the links and controls of the page, down and back up, and check at each stop whether the focused element is completely obscured by other content. If so, the failure applies and the page fails the criterion (W3C, F110). Failure descriptions such as F110 show typical ways to fail; the normative text is what counts. Conversely, the C43 fix is not mandatory either: content can satisfy the criterion without using any of the documented techniques (W3C, C43).
There is a technical reason why this happens so often in stores. When an element receives focus, the browser scrolls it into the visible area. The target region is the whole scroll area unless someone sets an offset; the default value is generally zero (MDN). The browser therefore knows nothing about fixed layers. The element ends up at the bottom edge of the window, exactly where the bar sits. In narrow windows and at high magnification the effect grows, because the bars take up a larger share of the height. When bars should give up being fixed at low heights is described in the article on reflow under WCAG 1.4.10.
Technique C43: making room with scroll-padding
The countermeasure that the W3C lists as a sufficient technique for 2.4.11 and 2.4.12 is C43: the CSS properties padding and scroll-padding create space so that controls a fixed-position component would otherwise completely obscure scroll into view when they are focused with a keyboard (W3C, C43). According to MDN, scroll-padding sets offsets from the edge of the scrollport that define the optimal viewing region, making room for objects that might obscure the content, such as fixed-positioned toolbars or sidebars (MDN). The following example applies this to a header and a promo bar:
/* Keep the heights of all fixed layers in one place */
:root {
--header-height: 4.5rem; /* sticky header */
--promo-height: 2.75rem; /* promo bar at the bottom edge */
--focus-room: 0.75rem; /* room for a focus ring drawn outside the element */
}
.site-header { position: sticky; top: 0; }
.promo-bar { position: fixed; inset: auto 0 0 0; }
/* The scroll container is the root element here */
html {
scroll-padding-top: calc(var(--header-height) + var(--focus-room));
scroll-padding-bottom: calc(var(--promo-height) + var(--focus-room));
/* Room at the end of the page so the footer can scroll out from under the bar */
padding-bottom: var(--promo-height);
}Three points decide whether this holds up in practice. First, scroll-padding belongs on the container that actually scrolls. On most pages that is html; if the content scrolls in its own container instead, for example in a single-page app or a filter sidebar with its own scroll area, the value has to go there. Second, the offset should be somewhat larger than the bar so that a focus ring drawn outside the element stays clear as well; the example for technique C43 adds 20 pixels (W3C, C43) of breathing room to the height of the banner. Third, the end of the page needs room: C43 therefore also adds padding at the bottom so that the footer and its links can scroll out from under the banner (W3C, C43).
Bars change their height: the text wraps in narrow windows, a bar gets closed, a second one is added. Fixed values in the CSS are then no longer correct. The C43 example therefore measures the banner height with a script using a ResizeObserver and writes it into a CSS variable; when the banner is closed, the breathing room also drops to zero (W3C, C43). The same pattern carries over to every fixed layer:
// Write the height of every fixed layer into a CSS variable
const layers = [
{ el: document.querySelector('.site-header'), prop: '--header-height' },
{ el: document.querySelector('.promo-bar'), prop: '--promo-height' },
];
const update = () => {
for (const { el, prop } of layers) {
// closed or hidden layers take up no space
const height = el && el.getClientRects().length ? el.offsetHeight : 0;
document.documentElement.style.setProperty(prop, `${height}px`);
}
};
const observer = new ResizeObserver(update);
layers.forEach(({ el }) => el && observer.observe(el));
update();For individual targets: scroll-margin
Where only individual elements are affected, such as jump targets of a table of contents, scroll-margin on the element itself helps. The property sets all of the scroll margins of an element at once, much like margin does for its ordinary margins (MDN). For focus across the whole store, scroll-padding on the container is the more robust choice, because the value applies to every target, including those that only get added to a template later. Check the result in the browsers your customers use and with magnification switched on.
Chat and mini cart: non-modal layers
According to the W3C, a properly constructed modal dialog passes 2.4.11: it takes focus when it appears, keeps it and prevents interaction outside until it is dismissed. At risk, by contrast, is a dialog-like layer that does not take focus when it appears, does not constrain interaction to itself and does not close when it loses focus, so that focus moves into the content behind it (W3C, Understanding 2.4.11). This is exactly how many chat windows and slide-out carts are built. How to implement a modal dialog properly is shown in the article on accessible modals and overlays.
For content the user opens, the second note of the criterion applies. The W3C describes a chat as a non-modal dialog: the user opens it, tabs out onto a link that the chat window completely hides, and closes the chat with Escape, which reveals the link again. Other acceptable ways are keys that scroll the content in the viewport and a key that switches between overlapping layers (W3C, Understanding 2.4.11).
The exception has a clear boundary: it applies only to content the user actively opens. Layers pre-positioned by the author, such as a sticky footer, and content that appears without direct user action, such as system warnings, must not prevent the focused element from being immediately visible (W3C, Understanding 2.4.11). The closed chat button in the corner and a chat that opens by itself after a while are therefore not covered by the exception. For layers that are meant to stay open, the W3C names several patterns that can pass the criterion (W3C, Understanding 2.4.11):
- Displace instead of overlay: the new content pushes the page down, like an accordion. What is not overlaid cannot hide the focus.
- Let content reflow: a sidebar opens, the main content becomes narrower and reflows, without anything overlapping.
- Take the focus along: the opened content takes focus, and the tab sequence stays inside it until it is closed. The W3C advises caution here, because mouse and keyboard users may then be treated unequally.
- Open into free space: many chats slide out into an empty page margin. This works if every breakpoint has been checked to confirm that nothing operable actually sits there.
- Close on leaving: when focus leaves the content, it collapses or can be closed with a dedicated key such as Escape.
For the mini cart that opens after “Add to cart”, this leads to a simple rule: either the window takes focus and returns it to the triggering button when it closes, or it closes as soon as focus leaves it and responds to Escape. If it stays open and lets focus keep moving behind it, it hides in the right-hand column exactly the elements the user tabs to next. How chat interfaces are built accessibly as a whole is covered in the article on accessible AI chatbots.
How it differs from 2.4.12, 2.4.7 and 2.4.13
The stricter version is 2.4.12 “Focus Not Obscured (Enhanced)” at level AAA: no part of the focused component may be hidden by content of the page (W3C, WCAG 2.2). What still passes at AA, such as a button whose lower half sits under the bar, fails here. As failures, the W3C names a sticky footer that partially obscures the focused element because the content scrolls without sufficient scroll-padding, and advertising or promotional content that appears over the focused element while the user moves through a catalog and covers part of the focus indicator (W3C, Understanding 2.4.12). Semi-transparent or dimming layers over the focus also fail 2.4.12, even though the element can still be made out (W3C, Understanding 2.4.12); at level AA they may fail 1.4.11 “Non-text Contrast” instead (W3C, Understanding 2.4.11).
| Criterion | Level | Test question | Typical finding in a store |
|---|---|---|---|
| 2.4.7 Focus Visible | AA | Is there a visible focus indicator? | outline: 0 without an equivalent replacement |
| 2.4.11 Focus Not Obscured (Minimum) | AA | Is the focused element at least partly visible? | Link sits entirely under the promo bar (F110) |
| 2.4.12 Focus Not Obscured (Enhanced) | AAA | Is no part of the element hidden? | Button half covered by the header |
| 2.4.13 Focus Appearance | AAA | Is the indicator large enough and high enough in contrast? | thin, pale ring around product cards |
| 1.4.11 Non-text Contrast | AA | Does the indicator stay recognizable under a semi-transparent layer? | dimmed page behind the mini cart |
For the implementation it pays to aim for 2.4.12 right away. Technique C43 is listed as sufficient for both levels, and its test procedure only distinguishes whether the element is not entirely hidden or not hidden at all (W3C, C43). Anyone who sets scroll-padding with a little breathing room generally answers both questions at once. The other new criteria in WCAG 2.2 are put into context in the article on the new success criteria in WCAG 2.2.
Testing along the tab sequence
Automated testing tools flag obvious failures around focus indicators but reach their limits with complex interactions such as keyboard traps and focus order (Web Almanac 2025). Whether a focused element sits under a bar at a given moment depends on window height, scroll position and the state of the layers; it only shows up when you walk through the page. A procedure for every page template:
- Record the layers: note for each template which elements are fixed or sticky: header, bars, cart bar, chat button, cookie banner, feedback tab. Add their states, such as bar active, chat closed and open, banner before and after the choice.
- Choose templates: home page, category with filters, product page, cart, checkout and customer account. Checkout often has bars of its own, such as a sticky order summary.
- Set the window: a common desktop width, a narrow window and a magnified view. Bars that are unobtrusive at full size take up a large share of the height when magnified.
- Tab forward: from the top of the page to the end, asking the F110 question at every stop: is the focused element entirely hidden? Note partial overlap for 2.4.12 at the same time.
- Tab backward: with Shift+Tab from the end of the page back up. This is where the header shows, because moving up scrolls targets in from above.
- Test opened layers: open the chat and the mini cart, then keep tabbing. If focus disappears behind them, test whether Escape or the arrow keys reveal the element without another Tab step.
- Record the finding: template, window width, state, obscuring layer, obscured element and a screenshot. Without the state, the failure often cannot be reproduced later.
A normal browser without any add-on is enough for the walkthrough. If you want to go through your own site yourself, you will find further checks without software in the article on the BFSG self-check; the basics of operating without a mouse are covered in the article on keyboard navigation. A WCAG audit checks every page in the agreed scope, including open states such as menus and dialogs, and documents each finding with a screenshot, the WCAG reference and a fix path with a code example.
What the BFSG says about it
The German Accessibility Strengthening Act (BFSG) does not name a WCAG version. Under § 4 BFSG, products and services are presumed to meet the requirements if they conform to harmonized standards whose references have been published in the Official Journal of the European Union (§ 4 BFSG). For web pages the relevant standard is EN 301 549. Its version V3.2.1, which remains the reference for now, is based on WCAG 2.1 level AA and therefore does not contain 2.4.11 (AccessibleEU).
Version V4.1.1 was published in September 2026 (AccessibleEU). It adopts WCAG 2.2 as the benchmark for websites, software and digital documents and adds six (AccessibleEU) new requirements from WCAG 2.2. For web pages, clause 9.2.4.11 explicitly requires meeting success criterion 2.4.11 (ETSI, EN 301 549 V4.1.1). Until the European Commission cites the new version in the Official Journal, V3.2.1 remains the legal reference (AccessibleEU). How the standard connects to the law is explained in the article on EN 301 549 as the standard behind the BFSG; which duties apply to whom is set out on the page on BFSG requirements.
Waiting is still not a good plan. A fully obscured focus indicator would likely fail 2.4.7 “Focus Visible” (W3C, Understanding 2.4.11), and that criterion is already part of WCAG 2.1 and thus of the version of the standard that applies today. Securing sticky bars with scroll-padding now fixes both findings in one step and prepares you for the new version.
How we make sticky bars focus-safe
Obscured focus is rarely the fault of a single component. The header comes from the theme, the bar from campaign planning, the chat from an embedded widget and the cart bar from the product template. Each layer is fine on its own; only together do they hide the focus. That is why we work in four steps:
- Take stock: record all fixed and sticky layers per template and state, with their height and position at different window widths.
- Manage heights centrally: every layer reports its height into a CSS variable, and
scroll-paddingon the right scroll container calculates the free area from it, with room for the focus ring. - Defuse the layers: make bars closable, remove fixed positioning at low heights, and build chat and mini cart so that they take focus or close when focus leaves them.
- Repeat the walkthrough: run the procedure with Tab and Shift+Tab again after every change to the bars, including when a new campaign brings another bar.
This keeps the focus visible without having to drop the header, promo bar or chat. How we build components in themes and templates accessibly is described on our page on accessible web development; for stores with many templates and extensions, the accessible shop is the right place to start.
Sources
scroll-padding and a little breathing room, both levels can usually be reached together.Related Articles
Swipe and Pinch: Pointer Gestures Under WCAG 2.5.1
Swipe galleries, pinch zoom and swipe to delete: how online stores offer one-finger operation under WCAG 2.5.1 and only trigger actions when the finger lifts.
Accessible accordions and tabs: building FAQs and panels
Build accessible FAQ accordions and tabs: details and summary, a button inside the heading, aria-expanded, arrow keys and answers that Ctrl+F can find.
Select Menus Without Surprises: WCAG 3.2.2 On Input
WCAG 3.2.2 in online stores: why sort, language and variant menus must not reload on the first arrow key, and how an Apply button and a keyboard test fix that.