{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-accordion-accessibility-5ac5e29695c2","title":"Ensure Keyboard Navigation for Accordions","summary":"Validate and implement accordions with keyboard navigation and ARIA attributes to ensure accessibility for screen reader users and keyboard-only navigation. The deliverable is accessible HTML markup with proper ARIA attributes and keyboard support.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-accordion-accessibility-5ac5e29695c2","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-accordion-accessibility-5ac5e29695c2","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-accordion-accessibility-5ac5e29695c2.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-accordion-accessibility-5ac5e29695c2\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure that button elements are used for accordion triggers with aria-expanded and aria-controls attributes. Keyboard navigation must support Enter, Space, and Arrow keys. Review server-rendered HTML and shared components for compliance.","instructions":"---\nname: accordion-accessibility\ndescription: \"Use when reviewing templates, rendered HTML, or shared components related to Make accordions keyboard navigable. Validate the final browser-facing markup, not just the source framework abstraction.\"\nmetadata:\n  category: html\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"25\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/html\/accordion-accessibility\n---\n\n# Make accordions keyboard navigable\n\nPoorly implemented accordions trap keyboard users and leave screen reader users unable to understand or navigate collapsed content sections.\n\n## Quick Reference\n\n- Use button elements for accordion triggers with aria-expanded\n- Associate panels with triggers using aria-controls\n- Support Arrow keys for navigation between headers\n- Use heading elements appropriately for document structure\n\n## Check\n\nVerify accordions use button triggers with aria-expanded, aria-controls, and proper keyboard navigation (Enter, Space, arrows).\n\n## Fix\n\nImplement accordions with button elements, aria-expanded state, aria-controls linking to content panels, and keyboard support.\n\n## Explain\n\nExplain the ARIA pattern for accessible accordions and how they enable keyboard and screen reader users to navigate collapsible content.\n\n## Code Review\n\nReview templates, server-rendered HTML, and shared components that output markup related to Make accordions keyboard navigable. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/html\/accordion-accessibility\n","use_cases":["Reviewing HTML templates for accordion components","Auditing server-rendered HTML for accessibility","Testing shared components for keyboard navigation compliance"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/accordion-accessibility\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:02:07.000000Z","updated_at":"2026-11-23T04:54:23.000000Z","seo_title":"Ensure keyboard navigation for accordions","seo_description":"Ensure keyboard navigation for accordions to improve accessibility for screen reader users and keyboard-only navigation.","seo_keywords":["keyboard navigation accordion","accessible accordion HTML","ARIA accordion implementation","screen reader accordion accessibility"]}}