button-name
Installation
SKILL.md
Provide accessible names for buttons
Buttons without accessible names are announced as 'button' by screen readers, leaving users unable to determine what action will be triggered.
Quick Reference
- Ensure every has a discernible, descriptive label
- Use inner text, aria-label, or aria-labelledby for identification
- Use buttons for actions and state changes, not page navigation
- Avoid empty buttons or those containing only non-text icons
Check
Scan for buttons that lack descriptive text or accessible labels.
Fix
Add 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.