focus-not-obscured
What it does
This skill checks whether fixed page elements cover the item that has keyboard focus. It is for developers who build sticky menus, cookie banners and chat widgets.
When to use it
- ✓When a sticky header covers a link as you tab through the page.
- ✓When a cookie banner hides the form field a keyboard user is filling in.
- ✓When you add a chat launcher or promo bar that is fixed to the screen.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/focus-not-obscured/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you check that my sticky header does not hide focused links when I use the tab key?”
5 new skills a week. 1 minute to read.
How it works
The agent tests keyboard focus with sticky elements showing and looks for cases where the focused item scrolls under them. It suggests scroll padding or changes to overlay size.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Keep focused elements unobscured
A visible focus ring is not enough if the focused element sits behind a sticky header or footer. Keyboard users need to see the actual focused control and the focus indicator at the same time in order to continue the task.
Quick Reference
- Sticky UI must not cover the focused control while keyboard users tab through the page
- Use
scroll-paddingor equivalent spacing when fixed headers or footers are present - Test with cookie banners, chat widgets, and consent bars open
- Re-test at zoomed and mobile layouts where overlap problems usually appear
Check
Audit keyboard focus with all sticky UI active. Check headers, footers, cookie banners, promo bars, and chat launchers for cases where the focused element scrolls underneath them.
Fix
Add layout spacing such as scroll-padding, reduce overlay height, or change focus/scroll behavior so the focused element remains visible when tabbing.
Explain
Explain WCAG Focus Not Obscured, why fixed-position UI commonly breaks it, and how scroll-padding and overlay layout choices prevent the issue.
Code Review
Review sticky layout, focus styles, overlays, and keyboard navigation related to Keep focused elements unobscured. Flag exact selectors, breakpoints, or UI states where focused controls can be covered.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/focus-not-obscured
FAQ
What is scroll-padding?
It is a CSS setting that leaves space at the top or bottom when the browser scrolls to a focused item, so it stays visible.
Which items does it check?
Headers, footers, cookie banners, promo bars and chat launchers.
When do these problems usually appear?
The skill says overlap problems often show up at zoomed and mobile layouts, so it advises re-testing there.
Details
Original description by the author
Use when reviewing sticky navigation, consent banners, chat widgets, skip links, or any fixed-position UI. Validate the actual tab order and viewport behavior at realistic zoom levels.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2850
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.