Test a sticky ticket bar for hidden keyboard focus
A ticket button fixed to the bottom of a phone screen can make booking easy to find. It can also cover the link or form control that receives keyboard focus behind it. Use this page-level test to find the exact collision, choose a repair, and verify the visitor journey after the bar, notices, and viewport change.
Boletolibre editorial team
Published
Set the pass line before testing
WCAG 2.2 Focus Not Obscured (Minimum), Level AA, requires a control receiving keyboard focus not to be entirely hidden by author-created content. That is a minimum: a partly covered link may pass this particular criterion. Focus Not Obscured (Enhanced), Level AAA, asks that no part of the focused control be hidden. For this event page, aim to leave the entire control and its focus indicator plainly visible, while recording the two criteria accurately.[1][2]
A second check is whether visitors can see which control has focus at all. WCAG Focus Visible calls for a visible keyboard focus indicator. A visible sliver of a link behind a bar does not prove its indicator is visible. Treat obscured control and missing indicator as separate observations.[3]
Walk the actual ticket route
Open the published event page at a narrow phone-sized viewport. Leave the sticky ticket bar on. Start at the browser address bar, move into the page, and use Tab without a pointer through the header, date and venue links, programme, access information, ticket button and footer. Then use Shift+Tab to reverse through the same area. Watch the screen at the instant each control receives focus; do not infer visibility from the position after scrolling manually.[1]
Repeat with any site notice visible, then with that notice dismissed. Test a short event page as well as a long one: near the bottom of a short page there may be no remaining scroll distance to lift a footer link above the ticket bar. Repeat with enlarged text or a smaller viewport so the ticket bar grows or wraps. Also focus the ticket button itself: its own indicator must remain apparent.[1]
Record the collision, not just a screenshot
For each failure, record the page URL, viewport and text setting, whether the ticket bar and notice were open, the exact link or control, and whether its body, focus indicator, or both disappeared. Note the Tab direction and capture the moment focus lands. A screenshot without the focused element identified is hard to repair because a developer cannot reproduce the same state.[1][3]
Classify the result carefully. A control entirely covered by author-created sticky content is the case addressed by the AA minimum. A partially covered control is still a usability defect worth fixing, and fully unobscured focus is the stronger AAA target. If the control is visible but the indicator is not, review Focus Visible separately. The goal of the worksheet is a reproducible defect, not a blanket accessibility verdict.[1][2][3]
Choose a repair that survives a smaller viewport
Prefer a layout that leaves room for the bar: reserve enough space after page content, reduce the bar’s height, or let it return to normal flow at a cramped breakpoint. W3C’s C43 technique demonstrates page padding plus scroll-padding so keyboard-focused links can scroll above a fixed footer, and also unfixes its example banner on smaller screens. An implementation must account for the bar’s actual height when text wraps or a notice appears; a fixed desktop offset is only a starting hypothesis.[4]
If a separate notice shares the bottom edge, decide which surface occupies that space and test their combined state. Do not make a background link focusable beneath a persistent overlay and assume visitors will find it. Keep the ordinary keyboard order and visible indicator intact while changing layout. After each adjustment, test the live rendered state again rather than treating a CSS property as proof.[4]
Retest and hand off
Use the worksheet to assign each collision to a page owner and a developer, then retest every failed state. Mark a row done only when Tab and Shift+Tab reveal the target without pointer scrolling, including the short-page footer, the bar’s own button, and the bar-plus-notice combination. Recheck the event pages that share the component, because ticket labels and translated copy may change its height.[1]
Before publishing, keep one keyboard run on a real narrow device or equivalent viewport in the release check. Save a short before-and-after note showing the focused control and the visible indicator. That evidence makes the next event-page update easier to review.
Sources and further reading
- Focus Not Obscured (Minimum), WCAG 2.2 SC 2.4.11W3C WAI · Accessed
- Focus Not Obscured (Enhanced), WCAG 2.2 SC 2.4.12W3C WAI · Accessed
- Focus Visible, WCAG 2.2 SC 2.4.7W3C WAI · Accessed
- Technique C43: CSS scroll-padding to un-obscure contentW3C WAI · Accessed