How can I stop a sticky header from hiding the focused page control?
Quick answer
Use Tab and Shift+Tab to check whether the sticky header completely covers any focused control, then test in-page links to see whether their destinations land beneath it. Adjust the layout or scrolling so targets remain visible; scroll padding is one possible approach. Retest focus movement and link destinations across relevant pages and responsive layouts. [S1] [S2]
The question, the details, the next step.
A practical checklist
Test keyboard focus with Tab and Shift+Tab.
Check whether the focused item and its focus indicator are completely covered.
Activate in-page links and inspect where their destinations land.
Adjust layout or scrolling when a target is obscured; consider scroll padding.
Repeat checks across relevant pages and responsive layouts.
Retest and record any remaining overlap.
A few more useful answers
Should I check only controls, or also section headings?
Check destinations reached through in-page links, including headings and controls. The key question is whether the target is immediately visible rather than hidden under the sticky element. [S2]
Does scroll padding guarantee that focus will never be obscured?
Does this check prove full accessibility conformance?
No. The cited guidance describes a minimum criterion addressing complete obscuring and notes that an enhanced criterion is stricter. This review focuses on the hiding problem, not every accessibility requirement. [S2]
Sources
References used for this guide.
- [S1] W3C Failure F110: Sticky Header or Footer Hides Focus w3.org · Checked
- [S2] Understanding WCAG 2.2 SC 2.4.11: Focus Not Obscured (Minimum) w3.org · Checked
