ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
PK
publishing-and-knowledge-systems · 30 min read

Preserving Keyboard Focus Beneath Sticky Controls

!A keyboard next to an open reading screen with one highlighted control safely above a sticky toolbar (generated illustration)

A keyboard next to an open reading screen with one highlighted control safely above a sticky toolbar (generated illustration)
A keyboard next to an open reading screen with one highlighted control safely above a sticky toolbar (generated illustration)
Workspace left below a fixed overlay (illustrative; data table below)
Workspace left below a fixed overlay (illustrative; data table below)
CategoryValue (CSS px)
40 px600
56 px584
72 px568
96 px544

Illustrative calculation (not sourced observations). 640 CSS-pixel viewport minus one hypothetical fixed overlay of the labeled height, ignoring all other chrome. Not a WCAG criterion or test outcome.

Imagine opening a long article, following its table of contents, and reading several sections without touching a mouse. At the end of a paragraph you press Tab. The scroll position shifts slightly. Nothing on screen appears selected. Another Tab takes you to a link you can see, but you cannot tell what you just passed. Shift and Tab sends you back to nothing. The previous link was there, and the browser did put keyboard focus on it. A persistent toolbar covered it at the moment it mattered. That is not a missing link or a dead key. It is a broken feedback loop between your input and the page.

Long articles accumulate just the right ingredients for this problem. A masthead pins to the top. A bottom strip keeps reading tools accessible. A table of contents can open on top of both. An editorial experiment adds a newsletter prompt after the second section. Each part looks good in an isolated design review. Nobody checks all of them together after a jump, at browser zoom, or with a long title that wraps the toolbar onto two lines. A pass on the introductory view tells you almost nothing about the combined state after a person begins reading.

The practical objective is to give each focused control somewhere usable to appear without removing everything that makes the article pleasant. An editor should still be able to offer a handy contents menu. A designer should still have room to make the controls recognizable. The browser should not be fighting a new forced scroll after every Tab. The safest place to start is with the layout: make clear which space belongs to reading, which space belongs to controls, and which part of the page is actually moving.

What the minimum requires, and what readers need

The normative reference is WCAG 2.2. Success criterion 2.4.11, at Level AA, is concerned with a user interface component being completely covered by content the author created when the component receives keyboard focus. Partial coverage does not by itself fail that particular requirement. Success criterion 2.4.12, at Level AAA, asks that no part of the focused component be covered by author-created content. Do not confuse a design decision to keep the entire control visible with a blanket claim that the site meets AAA.

The W3C WAI explanation of Focus Not Obscured (Minimum) gives sticky headers and footers as typical sources of overlap. It also distinguishes the component from an external focus ring. If a link is visibly there but an outside ring is covered, evaluate the visible focus state separately. If the ring gleams around an otherwise completely concealed control, do not treat the ring as a substitute for the component. A translucent overlay calls for a different observation from an opaque cover: the control might remain visible and still be unacceptably difficult to distinguish. Assess the actual appearance rather than assigning a pass from an opacity value.

Two qualifications matter when writing a test. For parts of a configurable interface users can move, evaluate their initial position for this criterion rather than requiring every possible arrangement to work. If a user opened content that overlaps the focused control, check whether the underlying focused component can be revealed without advancing keyboard focus. In any test that relies on that exception, demonstrate the reveal and identify where focus actually stays. A suggestion that the user tab forward and then tab back is not that demonstration. Changing tabs in the browser, moving the pointer, or insisting that users discover an undocumented workaround is not a good substitute for making the control visible in the first place.

In our article example a designer can set a stronger, concrete acceptance target: show the entire focused component and its indicator in ordinary article states. Use the same principle for the section heading reached by a jump, even though a passive heading does not automatically become a focusable interface component. That is a product quality rule, not an extension of the success criterion. The distinction matters when a tester reports that a heading is clipped, a link is partially visible, and an action button is completely hidden. All three are useful reports; they describe different observations.

Start with the walk a reader actually takes

Design a fixture with as much variation as a real publication would have. Use an article long enough to scroll beyond two screenfuls, a lengthy edition label in the top bar, and a few links near both edges of the viewport. Include a skip link, a contents list with several entries, a figure with a real next action, and a return-to-top link near the bottom. A heading and two inline links should be close together so that keyboard order can be observed immediately after a jump. Put a link very near the end, after the last figure or footnote, because that is where the document often runs out of space to scroll.

Document an uninterrupted keyboard itinerary first. Start at the address bar or reload and begin entering the page. Find the first link. Open or bypass the contents, select a destination, continue through the destination paragraph and nearby links, then reverse direction. Close any panel opened along the way and inspect what happens to focus. End by navigating across the last focusable control and into the toolbar or page footer, depending on DOM order. Keep the action, the expected destination, and the observed viewport separate in your notes. The focused node can be correct while its position is not; the page can also scroll to the correct heading while sequential focus remains in the menu.

Now repeat the itinerary with an intentionally awkward configuration. Keep the largest sticky controls on, make the title wrap, and open the contents list with the keyboard. Reverse through a section boundary where the header has just changed from normal flow to sticky positioning. Use sections long enough for the toolbar to go through any reveal or hide animation. If a component transitions in only after a few seconds, wait in the place a real reader might pause. A preference prompt or announcement that arrives while someone reads can change the available space after focus has already been established. Record that as a separate transition, not merely another screenshot of the same state.

The most revealing view often contains only one ordinary link. Seek a control with a simple expectation and no complicated menu semantics: an inline reference near the lower edge, a final figure action, or a small adjacent navigation link. If the browser focuses it and no part of it is visible because a bar covers it, you have a portable test case. Do not start by trying to repair the whole site or reproducing a large layout with every promotional widget enabled. Isolating one honest failure makes it far easier to decide which layer owns the fix.

What the chart shows

The figure uses a viewport height of 640 CSS pixels and subtracts one hypothetical overlay flush with an edge. With a 40-pixel overlay, the arithmetic leaves 600 pixels. At 56 pixels the remainder is 584; at 72 it is 568; at 96 it is 544. From the smallest to largest example, the notional reading area shrinks by 56 pixels. The labels are overlay heights, not browser zoom percentages, and the bars are remaining viewport heights, not the heights of controls or the amount of a control that remains visible. They are calculated examples rather than observed results. The linked W3C explanation describes the problem; it is not the source of these four numbers.

The point of the subtraction is to make a layout dependency visible. A control that wraps from a 40-pixel row to a 96-pixel block does not just look different: it consumes 56 more pixels of the same height budget. If a link previously landed halfway into an exposed 56-pixel region near the bottom, it may now land underneath the enlarged overlay. That conditional consequence is not in the chart; to know where a particular link lands, you must observe an actual focus transition. The calculation also ignores the top header, browser chrome, safe-area allowances, keyboard, every other panel, the placement of the focused link, and any browser adjustment after focus.

In a second hypothetical layout, give the page a 64-pixel top bar and a 96-pixel bottom bar, each spanning its edge, and hold the height at 640. The arithmetic reading band is 480 CSS pixels if those bars neither overlap nor reserve extra space. A free-floating alert might occupy a corner of that band without taking away its whole width. Treating it as another full-width deduction would misrepresent the layout. There is no magic 480-pixel, 544-pixel, or 600-pixel threshold for focus visibility. An interface with plenty of available space can still put a particular button behind a bar. Another with considerably less can keep all focused controls visible if it lays out and scrolls the content intentionally.

Use the data table for the exact four values and the figure for the pattern. When adapting the experiment to a real article, collect the browser-reported viewport and overlay dimensions from the same state, then write a separate observation about focus. If comparing before and after, change one condition at a time. A comparison between a narrow portrait window with browser zoom and a wide, unzoomed window is not a controlled estimate of the effect of width, zoom, or toolbar height on its own. It can still be a useful pair of reader situations, as long as the report describes them that way.

Find the scroll owner before choosing a fix

Determine which element actually scrolls when you move into the next section. In a straightforward document it may be the root. A long reading pane next to a rail may instead have an inner scrollport. A contents drawer might have its own scroll region even if the article uses the root. Those boundaries matter because placing an offset on a non-scrolling ancestor often makes no difference. Inspect which scroll position changes on wheel, Page Down, and Tab. After identifying the scroll owner for the article, repeat the observation inside the drawer. They need not share a solution, but their keyboard behavior needs to agree about where the reader is.

Consider a desktop layout with a header on the root and a nested reading pane below it. The header does not cover the pane if the pane begins below a header row that occupies space in normal layout. Constraining the pane to the space below the header may be enough. Now imagine the same pane behind a toolbar fixed to the window edge. The pane can stretch underneath the toolbar and scroll a paragraph to a technically visible position in its own rectangle that is visually covered in the window. Native focus scrolling sees the local geometry; it does not automatically know your intended clear region. The structure, not the focus event handler, is the most reliable place to communicate that constraint.

Start by considering whether persistence is essential. A persistent bottom strip may be valuable in a short feature where its actions are repeatedly used. In an article that is primarily read, relocating low-priority actions to a non-sticky footer may remove the problem and simplify the page. A compact static row near the beginning and a repeat at the end can be better than a row pinned throughout. Where navigation is truly essential, use the minimum set of controls that serve the task, and avoid making a site-wide subscription message compete with important document actions.

If persistence belongs in the design, reserve space or define a clear region. A layout with three rows for the header, scrollable middle, and bottom controls can prevent overlap by construction. Test that the inner region can actually shrink and scroll, that a user can continue reading with a keyboard, and that links in other rows still appear in a meaningful order. If you keep overlays, set scroll padding on the real scroll container to give navigation and scrolling room at the affected edges. Verify the effect with Tab and Shift and Tab as well as fragment links and any scripted scroll. Supporting a jump is not evidence that all focus scrolling works the same way in every environment.

Do not use one custom offset to paper over all sizes. For example, a fixed 56-pixel clearance might work when the bottom strip contains one line. It is likely to undercount an expanded navigation state, or to waste space when the strip collapses. Measure the size the bar really occupies or design the bar so its possible sizes are known and bounded by normal flow. Measure once after the relevant state change, not on every focus or scroll event unless there is a demonstrated need. Keep the extra margin small enough to leave a meaningful reading band and generous enough for outlines and closely spaced links.

Reserve different kinds of space deliberately

One recurrent bug is correcting anchor alignment without providing enough room at the end of the document. An offset can communicate where a target ought to be aligned, but it does not necessarily create additional scrollable content. If a final link is next to the bottom of an article and the footer is covered by a fixed strip, the document can run out of travel before that link moves upward. Add real after-content space when an overlay takes away the bottom of the visible area, or move the toolbar outside the scrollport. Verify that the last actionable line can rise into view at the maximum scroll position.

At the start, a similar issue appears with first controls and skip links. A skip link can be intentionally positioned off screen when it has no focus, then revealed on focus. Check whether its revealed position is above or below a masthead, whether its stacking layer gives it a chance to be seen, and whether the landing point after activation is outside the obstruction. If this control can only be seen after you have scrolled the page, a first-time reader may never discover it. Testing only from the middle of a sample article skips precisely the situation in which the skip link matters most.

There is also a difference between scroll padding and target margin. Put broad allowances for fixed page furniture on the scroll owner when you want a common clear zone. A target-side margin can be helpful for headings that need a bit of breathing room after a fragment jump. Using both can be reasonable, but check where the combined allowances take the reader. On a short viewport, a large header offset plus a large heading margin can put the first actionable item beyond the usable band. Raise the margin only where it makes the destination easier to recognize, not by default on every item.

For a toolbar that responds to translation or font loading, test the content that has the longest plausible label and the typeface fallback that has the widest plausible letterforms. A narrow toolbar might move from one row to two before a font loads, back to one after it loads, and then expand again after a label is updated. None of these states is faithfully represented by a screenshot captured on a fast machine after all layout has settled. Observe both the immediate state and the settled state after focus. If the control is covered only during a reproducible movement, describe the timing and duration instead of averaging it away.

An unusual case is an overlay that occupies less than the full width. The left edge of a reading pane may have an always visible reference link while a right-side button covers the equivalent space on the other side. A global bottom offset is conservative, but it might unnecessarily remove a large area from the whole document. Moving the button, leaving dedicated space at the side, adapting it at small widths, or using a static placement is often simpler than writing code that distinguishes every protected rectangle for every focused item. Avoid a fix whose correctness depends on a fresh set of rules for each new editor-created callout.

Treat jump navigation as both an address and a transition

A contents item commonly points to a fragment in the same article. Start with a genuine link to a stable ID so the destination can work in a shared address and the page remains meaningful if scripting is delayed. Test the link by clicking it, but do not stop there. Activate it with the keyboard. Check what the location shows where that is part of the design, whether the heading is exposed, and whether the next Tab begins in the intended region. Then load the fragment directly and use back and forward navigation. It is possible for all visual landings to look acceptable and still leave the next keyboard action in an unexpected part of the document.

Do not confuse scrolling, focus, and selection. A scroll action can put the heading on screen without changing the active element. Selection can paint text without giving the reader a predictable Tab destination. Focus can move without scrolling if the code specifically asks it not to scroll. Fragment navigation can affect the location used for subsequent sequential focus even when a passive heading is not itself a focusable form control. Rather than assuming exact behavior from any one of these mechanisms, observe the next two steps in the supported browsers. An issue report that says only “jump link fails” loses all the evidence needed to tell these apart.

If the product intentionally moves focus to a heading after a scripted jump, a temporary or permanent negative tabindex can make the heading programmatically focusable without inserting it among ordinary Tab stops. Do not give every heading ordinary Tab priority, and do not globally intercept Tab to implement reading order. Test whether setting focus scrolls twice in combination with your own scroll operation; if you deliberately suppress one scroll, check that the destination really is in the visible reading band after the other takes place. This explicit strategy is a candidate for a tested interaction, not a rule that every native fragment link must be rewritten.

Keep the destination visually identifiable as well. Landing exactly at the bottom edge of a sticky header can make the page appear to start in the middle of the paragraph even when the heading is technically exposed. A small, consistent clearance tells the reader that they have arrived. A destination that initially appears for a moment and then slides under the masthead because an image above it loads late produces a different problem. Preserve space for media with dimensions or an aspect ratio, test long and short articles, and avoid centering jumps based on a one-time viewport estimate if the content can still shift.

For repeated headings, use unique IDs and make the contents labels distinguishable. Two sections named “Methods” might be differentiated by topic without changing the structure. Accidentally reusing an ID can land both links at the first section while leaving the focus outline perfectly visible. An assistant reviewing screenshots could call this a visibility pass and still miss the broken navigation. That is why a useful acceptance test combines the name of the intended destination, the result of activation, and the location of the next keyboard action. Each addresses a different part of the task.

Restore focus according to what the user just did

Opening a small non-modal contents list and opening a modal drawer are different interactions. A disclosure that reveals more links below a heading need not trap focus. A modal has a more demanding contract: background controls should no longer be available to normal focus navigation while the modal owns the interaction, an initial focus target must be chosen, and closing should return a person to a sensible place. Do not let the same drawer alternate between acting modal and acting non-modal without updating the keyboard behavior. An opaque backdrop that blocks the pointer while leaving the background in the keyboard sequence is especially easy to miss in mouse-only reviews.

Closing a contents panel with Escape usually expresses “I am done with this panel,” not “take me to an unrelated destination.” Returning focus to its opener is a sensible default when the opener still exists and is visible or can be made visible. Activation of a jump often expresses a different intent: the reader wants to go to the destination, not to the opener. A single close handler that restores the opener in all cases can undo a successful jump and put navigation back at the top. Make the reason for close part of the state so that cancellation and successful navigation can choose different outcomes.

Build a deterministic fallback when the opener no longer exists. For instance, a user may open the contents in a narrow layout, rotate the device, and then dismiss it after the layout has changed. If the narrow opener has been removed and replaced by a different control, returning to a saved node reference does not reestablish a coherent location. Resolve the corresponding visible trigger or a meaningful nearby target for the current state. Avoid falling back to the very first element on the page unless that is where the reader would reasonably expect to restart. Confirm which element actually holds focus after the fallback, not simply whether the close animation ended.

When a panel closes, do not leave focus inside an element becoming hidden. If exit animation delays removal, clarify when the panel stops accepting interaction and when focus moves. A temporary visible animation state does not justify keeping keyboard focus on a link that cannot be activated. Conversely, moving focus to a hidden destination before the panel is gone can make it disappear behind the still-present overlay. Exercise the route with motion disabled too. The focus transfer must work even when no transition event fires or the duration is effectively zero.

Also test a closure caused by a change of viewport or a switch from reader mode to an expanded page mode. These are not always the same as an explicit Escape. Suppose a wide layout opens an inline contents rail; a narrow layout converts it to a drawer. Collapsing the original rail should not strand the active focused link. A responsive implementation can preserve the interaction, move focus to the equivalent visible link when appropriate, or close it with a clear return location. Which choice makes sense depends on whether the person was navigating, selecting, or simply reading. Record the chosen behavior as part of the component contract.

Make a matrix based on failure boundaries

A practical first pass distinguishes viewport size from zoom, because resizing a browser window and zooming a desktop page are not interchangeable reproductions of the reader's situation. Start with a typical desktop configuration. Also choose a short desktop window, a narrow portrait layout, and a small landscape height. Then repeat the important itineraries at the page zoom settings relevant to the support baseline, including higher magnification. Record actual CSS-pixel geometry for each run, but also record how you got there. Two setups with similar numbers can differ in the browser UI, text settings, and available input methods.

Choose example widths to probe known breakpoints rather than to imply a pass for all phones. If a toolbar wraps below a width of roughly 420 CSS pixels in the current build, test just above and below with the longest label, and then at a narrower width where it might wrap again. If moveable controls become fixed at the desktop breakpoint, cover both sides of that layout boundary. Check the same widths with a taller and shorter height. Sticky elements occupy a fraction of the reading band, so height deserves a separate row rather than being treated as whatever dimension comes with a familiar phone preset.

For every configuration you cannot realistically test, be clear about the remaining uncertainty. A desktop browser emulating a narrow portrait viewport is useful for detecting constrained layout. It is not the same as a physical phone with a hardware keyboard, changing browser chrome, or an on-screen keyboard that consumes space while a form field is active. A browser-integrated zoom test is useful for determining behavior under that browser's zoom. It is not an automatic substitute for text-only enlargement, display-level scaling, or the separate evaluation expectations of other accessibility criteria. Do not call any one of these fixtures comprehensive simply because the test is reproducible.

Cross the geometry setups with interface states selectively. Start with the default masthead and controls; then add whichever optional layer can appear in the same real session. Test the page before and after the notification is dismissed, with the contents open where that combination is possible, and with the contents closed when navigating backwards. Add a row for the first and final destinations and another for a mid-article link near the boundary. If you cannot enable two overlays together in the real application, do not spend test time on an impossible pair. Write down that exclusion, and verify it when the product changes.

You need not enumerate every permutation by hand. Select a stable small matrix for regression, and add targeted pairs when a change touches a particular component. As an example, the wide desktop row with no prompts can catch an accidental ordering change. A short desktop row with the toolbar and a long label can catch top and bottom collision. A zoomed row with the contents open or recently closed can expose focus transfer errors. A physical mobile row with external keyboard input can address the behavior you did not prove in browser emulation. The important thing is to make each row exist to answer a question.

Observe the screen and the state together

A tester can record the active element's accessible name, role, bounding information, and the sequence of key presses, then capture a screenshot of the same state. Keep screenshots wide enough to include the obstructing layer and the edges of the reading area. A component-only crop can hide the relation between the control and the toolbar. Attach a useful identifier for the build and the page, and describe whether the obstruction came from the head, foot, drawer, or another author layer. Note which document or frame is involved if the content is embedded. The purpose of the record is that a second person can reproduce the problem without interviewing the first.

Follow one partial case with a full case. Suppose a link spans two lines but only the first few letters remain above a bottom strip. If you can see some of the component, record partial coverage and poor usability rather than saying it is fully covered. Now continue backwards and forwards until the same strip covers an entire link. Record whether the component is active and whether any of its visible content remains. Note separately where the indicator went. This makes the strongest result unambiguous while still preserving a backlog of partial overlaps that are worth fixing under the stronger product goal.

Do not rely on a single automatic hit test. A geometry check that compares a known full-width opaque toolbar to a control's rectangle is useful when the fixture declares those assumptions. In a more general interface the focus ring might lie outside the rectangle, a rounded overlay might leave an exposed corner, or a link made of several inline fragments might not occupy everything in its bounding box. A transparent overlay can intercept pointer input without concealing the control, and pointer hit testing and visibility are not the same thing. Conversely an element can remain in the focus order while being clipped by a parent rather than hidden by a sibling layer. Look at the result.

Design automated checks to fail clearly on well-defined invariants. For a fixture with rectangular toolbars on both edges, a test can compare whether the actual focused button lies wholly inside the declared safe band, and identify which boundary it intersects. That would be a test of the fixture's stronger policy, not a generic automatic assessment of WCAG. For an inline link with wrapping text, the check might report intersections for its line fragments and label uncertain results for inspection. For a modal regression, record whether the active element escapes to a background control when you continue through the allowed keyboard sequence. The cases should say what they measure.

Wait for useful states, not arbitrary sleep intervals. If the bug occurs after a sticky threshold, navigate until that state is observable and then press the next key. If the state changes when the drawer is removed, wait for the relevant DOM or visibility state and examine focus. If class changes happen immediately but visible movement finishes later, capture before and after, and describe both. Checking only after a generous fixed wait can hide a meaningful period when the user cannot see what they have focused. Checking only immediately can also make a sound settled interaction look incomplete. Test timing is itself part of what the report documents.

Review a sample without turning it into a site-wide claim

The WCAG Evaluation Methodology 2.0 is informative guidance on defining scope, exploring the product, choosing a representative sample, evaluating it, and reporting the findings. Use that structure to separate a local test result from a broader evaluation. Passing through one long article and one drawer says that this route behaved as observed in the named conditions. It does not tell you whether an old article template, another toolbar, or an embedded experience has the same behavior. Nor does it establish conformance with all criteria on the pages you visited.

Build a sample around structural differences. Include at least one simple text article, one with a sticky interactive figure or embedded media, one where the contents drawer includes a long list, and one where the navigation changes because of a different template. If all layouts share the same header but some use nested reading panes, the header is shared and the scroll behavior is not. When a route is only visible after a preference is enabled or when the reader accepts a prompt, decide if that state belongs within scope and describe the path needed to reach it. A complete inventory of features can be more valuable than a random set of popular articles for finding what to inspect first.

Also state how the check was performed. A sample note might say that a named build was tested on two desktop browser configurations and a physical handheld device using a hardware keyboard. The rows could specify that all focused components stayed outside the toolbar in the tested sequences, that one divider briefly shifted at the first jump, and that no separate text-only enlargement or screen-reader traversal was evaluated. That note is precise without pretending to establish accessibility more broadly. It also leaves the next team a clear place to add evidence rather than forcing them to reinterpret a generic green checkmark.

Separate conformance findings from release policy. A partially covered button might meet the minimum on this dimension and still violate your “entire control plus indicator” policy. An unsupported keyboard trap might be entirely separate from overlap but still prevent a reader from finishing the route. A pass on the overlap case does not excuse the trap. Conversely, finding one covered focused control does not specify everything wrong with the site. In a defect list, record findings by observation, attach the relevant criterion where applicable, and give the owner enough information to reproduce and verify the repair.

Repair the failure at the layer that owns it

Suppose you find a hidden inline link on the second pass through the article. Disable the bottom toolbar in a test environment and repeat precisely the same keyboard sequence. If the link is exposed, restore the bar and move it out of the document's reading space to check whether the bug disappears without removing the function. If it does, the layout owns the fix. Do not start by styling the link with a high stacking index to float above the bar. That can create a button sitting over the author controls, and the next focused link may still be covered. A successful patch on one element is not necessarily a coherent design.

If the component never receives focus in the first place, examine the focus order and the visibility of its parent rather than adding space. If the component is focused but off screen because a competing handler set the scroll position, observe both scroll requests. The remedy may be to remove the second request or decide a single owner for positioning. If a modal closes and records focus on an opener that has vanished, a responsive fallback belongs in the close transition, not in a global stylesheet. Identify which contract is broken before changing the UI.

When a regression has multiple causes, fix one and retest the combination. A wide sticky bar might require reserved space and also need a different label treatment under zoom. A late-loaded promotion might cover the link and interrupt restoration from the contents drawer. Correcting the bar without checking the promotional state can give a false sense of completion. Preserve the original failing route as a regression alongside an easy route that previously passed. That keeps a targeted fix from introducing a change to normal reading, especially when it alters scroll behavior in a shared layout.

A publication can also write a policy for future interactive components. Before any feature pins itself to a viewport edge, its design review should specify what space it uses, how it collapses, whether another layer can coexist with it, and who owns focus while it is active. When approved, add an actual sample article with mixed content and one unusual layout, not just a toolbar story by itself. This is organizational prevention rather than a coding technique. It reduces the need to rediscover geometry and modal conflicts every time the publication adds a small feature.

A reproducible acceptance exercise

Create an intentionally short sample route first. Name an opener, two contents destinations, one link near the bottom of each section, and one final footer link. Identify which of those components are meant to be keyboard stops. In a fixed viewport width and height, write down the expected landing for the first Tab and the first selection, then test each route from a fresh page state. Make a separate run for Escape from the contents, and one for selecting the second contents item. The test can fail in a different way even though both actions close the same panel.

Now make the bottom bar taller without touching the linked destinations. If the focused element overlaps after the size change, note whether the document can still scroll enough to expose it. Check the final link at the maximum scroll rather than at a conveniently chosen middle of the page. Then modify the layout so the scroll container leaves enough room or the bar occupies a distinct normal flow region. Repeat the sequence, including backward navigation, with the enlarged bar still present. Only compare the old and new geometry at the same settings. Restoring the old toolbar size before re-running the test would dodge the failure rather than proving the fix.

Deliberately simulate a faulty close routine and repair it. Make cancellation return to the opener, and make selection keep the reader at the intended section after the drawer closes. At both stops, check what the very next keyboard action does. Switch to a narrow layout at the moment you would normally close and note whether the opener still exists. The useful test artifact is a log: route, result, first next focus, any coverage, then the build that fixes it. It is possible for a screen recording to look smooth while concealing a broken focus transition; a name and direction in the log are harder to misread.

Finish by removing changes used only to provoke the bug and exercising the real components. The sample has shown that the test can catch a deliberately introduced regression. It has not demonstrated that production behavior matches the sample. Compare which scroll container the actual template uses, which settings may enable a bigger toolbar, and which states are reachable. If the samples differ, record the failure separately rather than pasting a test status from the fixture onto the release. A careful report is useful precisely because it is bounded.

What to keep after the fix

Keep a small set of artifacts that say why the design changed. That might be the actual failing key path, a screenshot showing the toolbar and missing control, a second screenshot or recording of the repaired path, and a description of where space is now reserved. If there is no single screenshot that proves the transition, include the state log. Record the date and build, the browser and operating mode, the zoom or text settings, the viewport in CSS pixels, and which prompts were active. Do not retain incidental personal content when a fixture or redacted screenshot can say the same thing.

For editorial acceptance, ask whether the repair left the article pleasant to read. If the pinned tools now take too much space on a short screen, move the least used ones into the document rather than asking readers to zoom out. If long content jumps land with distracting motion, consider whether smoothing adds value rather than using it by default to hide a second scroll command. If the path is technically possible but the next link is difficult to interpret, revise the labels or focus styling. Nothing about preserving keyboard focus requires giving up a recognizable visual identity.

Most of all, test the route again the next time a sticky control changes. Translation, extra footer actions, different ad dimensions, and new reading modes all alter assumptions about the visible area. The smallest lasting improvement is to make the clear zone a property of the layout, not a coincidence that depends on where the mouse happens to be. Give the user back the evidence each key press should produce: a clear visible control, a predictable next action, and a reading position that still makes sense.

References

Frequently asked
What is Preserving Keyboard Focus Beneath Sticky Controls about?
!A keyboard next to an open reading screen with one highlighted control safely above a sticky toolbar (generated illustration)
What should you know about what the minimum requires, and what readers need?
The normative reference is WCAG 2.2 . Success criterion 2.4.11, at Level AA, is concerned with a user interface component being completely covered by content the author created when the component receives keyboard focus. Partial coverage does not by itself fail that particular requirement. Success criterion 2.4.12,…
What should you know about start with the walk a reader actually takes?
Design a fixture with as much variation as a real publication would have. Use an article long enough to scroll beyond two screenfuls, a lengthy edition label in the top bar, and a few links near both edges of the viewport. Include a skip link, a contents list with several entries, a figure with a real next action,…
What should you know about what the chart shows?
The figure uses a viewport height of 640 CSS pixels and subtracts one hypothetical overlay flush with an edge. With a 40-pixel overlay, the arithmetic leaves 600 pixels. At 56 pixels the remainder is 584; at 72 it is 568; at 96 it is 544. From the smallest to largest example, the notional reading area shrinks by 56…
What should you know about find the scroll owner before choosing a fix?
Determine which element actually scrolls when you move into the next section. In a straightforward document it may be the root. A long reading pane next to a rail may instead have an inner scrollport. A contents drawer might have its own scroll region even if the article uses the root. Those boundaries matter because…
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room