{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-button-name-551dbb5fa0dd","title":"Ensure Buttons Have Accessible Names","summary":"This skill ensures buttons have accessible names using text, aria-label, or aria-labelledby to improve screen reader usability. It is critical for accessibility compliance.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-button-name-551dbb5fa0dd","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-button-name-551dbb5fa0dd","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-button-name-551dbb5fa0dd.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-button-name-551dbb5fa0dd\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure buttons are not empty and do not contain only non-text icons. If the element navigates to another URL, replace the button with a link instead of keeping button semantics.","instructions":"---\nname: button-name\ndescription: \"Use when reviewing rendered HTML, interactive components, or design-system patterns related to Provide accessible names for buttons. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.\"\nmetadata:\n  category: accessibility\n  priority: critical\n  difficulty: beginner\n  estimatedTime: \"5\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/button-name\n---\n\n# Provide accessible names for buttons\n\nButtons without accessible names are announced as 'button' by screen readers, leaving users unable to determine what action will be triggered.\n\n## Quick Reference\n\n- Ensure every <button> has a discernible, descriptive label\n- Use inner text, aria-label, or aria-labelledby for identification\n- Use buttons for actions and state changes, not page navigation\n- Avoid empty buttons or those containing only non-text icons\n\n## Check\n\nScan for buttons that lack descriptive text or accessible labels.\n\n## Fix\n\nAdd an accessible name to the button using text content, an aria-label, or an aria-labelledby reference. If the element navigates to another URL, replace the button with a link instead of keeping button semantics.\n\n## Explain\n\nExplain why accessible names are critical for screen reader users to identify and interact with buttons, and why buttons should trigger actions while links should handle navigation.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Provide accessible names for buttons. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.\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\/button-name\n","use_cases":["Reviewing HTML for accessibility compliance","Testing interactive components for screen reader compatibility","Auditing design-system patterns for accessibility"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/button-name\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:27:17.000000Z","updated_at":"2026-11-23T04:54:44.000000Z","seo_title":"Ensure buttons have accessible names for accessibility","seo_description":"Ensure buttons have accessible names to improve screen reader usability. Use text, aria-label, or aria-labelledby for identification.","seo_keywords":["accessible button names","screen reader compatibility","button accessibility check","aria-label for buttons","accessible HTML buttons"]}}