skills/wcag-audit-operable-target-size/SKILL.md
Validate touch target sizes meet 44x44px minimum requirement
npx skillsauth add jkense/agent-skills-wcag wcag-audit-operable-target-sizeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this tool when designing buttons, links, form controls, or any interactive elements to ensure they meet minimum touch target size requirements for accessibility.
node scripts/check.js --width 48 --height 48
node scripts/check.js --width 32 --height 40 --spacing 8
node scripts/check.js --element "button" --dimensions "44x44"
node scripts/check.js --json '{"width": 48, "height": 48, "spacing": 8}'
--width: Element width in pixels--height: Element height in pixels--spacing: Minimum spacing between adjacent targets (optional)--element: Element type description (optional)--dimensions: Dimensions as "WxH" format (alternative to width/height)--json: JSON input with dimensions and spacing propertiesReturns JSON with compliance status and recommendations:
{
"dimensions": {
"width": 48,
"height": 48
},
"minimumRequired": {
"width": 44,
"height": 44
},
"compliance": {
"size": true,
"spacing": true
},
"recommendations": []
}
$ node scripts/check.js --width 48 --height 48 --element "primary button"
✅ Size: PASS (48x48px meets 44x44px minimum)
✅ Spacing: PASS (8px spacing provided)
No issues found - this target meets accessibility requirements
$ node scripts/check.js --width 24 --height 16 --element "footer link"
❌ Size: FAIL (24x16px is below 44x44px minimum)
❌ Spacing: FAIL (insufficient spacing between targets)
Recommendations:
- Increase width to at least 44px (currently 24px)
- Increase height to at least 44px (currently 16px)
- Ensure at least 8px spacing between adjacent interactive elements
For more information about Agent Skills and how they extend AI capabilities.
testing
Route form input and data collection accessibility requirements
testing
Form design accessibility rules for user input and data collection
testing
Route typography accessibility design decisions and requirements
testing
Convert between px, pt, em, rem units with accessibility context