Skip to content
Skillpedia
Websites & UI (frontend)75k · #2850

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.md

Copy 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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/focus-not-obscured/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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-padding or 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.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2850
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills