squirrelscan
GitHub

Touch Targets

Checks for minimum touch target sizing hints

Checks for minimum touch target sizing hints

Rule ID a11y/touch-targets
Category Accessibility
Scope Per-page
Severity warning
Weight 4/10

Solution

Touch targets (buttons, links) should be at least 44x44 pixels for accessibility (WCAG 2.5.5) and usability. Increase size with padding rather than just increasing font size. Ensure at least 8px spacing between adjacent targets. For inline links in text, provide sufficient line-height. This helps users with motor impairments and improves mobile usability for everyone.

Enable / Disable

Disable this rule

[rules]
disable = ["a11y/touch-targets"]

Disable all Accessibility rules

[rules]
disable = ["a11y/*"]

Enable only this rule

[rules]
enable = ["a11y/touch-targets"]
disable = ["*"]

Type to search…

↑↓ navigate↵ openesc close