# Ensure Focused Elements Are Not Obscured by Sticky UI

Verify that keyboard users can see focused elements even when sticky UI components like headers, footers, or banners are active. This includes testing with cookie banners, chat widgets, and consent bars open, and re-testing at zoomed and mobile layouts.

**Canonical URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-focus-not-obscured-721201d33c21

**JSON URL:** https://skillshunter.net/api/public/v1/skills/github-thedaviddias-front-end-checklist-skills-focus-not-obscured-721201d33c21

**Markdown URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-focus-not-obscured-721201d33c21.md

**Instructions download URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-focus-not-obscured-721201d33c21/download

**Category:** Software & Development

**Source URL:** https://github.com/thedaviddias/Front-End-Checklist/blob/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/focus-not-obscured/SKILL.md

**Source commit:** e8d14d049010e2ce25afcd5e8609dfcbbe63e47e

**Listing approved at:** 2026-11-23

**Created at:** 2026-11-22T16:12:10.000000Z

**Updated at:** 2026-11-23T04:55:09.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Use `scroll-padding` or equivalent spacing when fixed headers or footers are present. Test with all sticky UI active, including cookie banners, chat widgets, and consent bars. Re-test at zoomed and mobile layouts where overlap problems usually appear.

### When to use it

- Testing focus visibility on pages with sticky headers or footers
- Auditing keyboard navigation with active cookie banners or chat widgets
- Verifying focus behavior on mobile and zoomed layouts

## Skill instructions

---
name: focus-not-obscured
description: "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."
metadata:
  category: accessibility
  priority: high
  difficulty: intermediate
  estimatedTime: "20"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/accessibility/focus-not-obscured
---

# 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

