{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-focus-not-obscured-721201d33c21","title":"Ensure Focused Elements Are Not Obscured by Sticky UI","summary":"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.","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","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-focus-not-obscured-721201d33c21\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_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.","instructions":"---\nname: focus-not-obscured\ndescription: \"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.\"\nmetadata:\n  category: accessibility\n  priority: high\n  difficulty: intermediate\n  estimatedTime: \"20\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/focus-not-obscured\n---\n\n# Keep focused elements unobscured\n\nA 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.\n\n## Quick Reference\n\n- Sticky UI must not cover the focused control while keyboard users tab through the page\n- Use `scroll-padding` or equivalent spacing when fixed headers or footers are present\n- Test with cookie banners, chat widgets, and consent bars open\n- Re-test at zoomed and mobile layouts where overlap problems usually appear\n\n## Check\n\nAudit 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.\n\n## Fix\n\nAdd layout spacing such as scroll-padding, reduce overlay height, or change focus\/scroll behavior so the focused element remains visible when tabbing.\n\n## Explain\n\nExplain WCAG Focus Not Obscured, why fixed-position UI commonly breaks it, and how scroll-padding and overlay layout choices prevent the issue.\n\n## Code Review\n\nReview 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/accessibility\/focus-not-obscured\n","use_cases":["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"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/focus-not-obscured\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:12:10.000000Z","updated_at":"2026-11-23T04:55:09.000000Z","seo_title":"Ensure Focused Elements Are Not Obscured by Sticky UI","seo_description":"Ensure keyboard users can see focused elements even when sticky UI components like headers or banners are active.","seo_keywords":["accessibility focus not obscured","sticky UI focus visibility","keyboard navigation testing"]}}