GitHub

Touch Targets

Checks for minimum touch target sizing hints

Checks for minimum touch target sizing hints

Rule IDa11y/touch-targets
CategoryAccessibility
ScopePer-page
Severitywarning
Weight4/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

squirrel.toml
toml
[rules]
disable = ["a11y/touch-targets"]

Disable all Accessibility rules

squirrel.toml
toml
[rules]
disable = ["a11y/*"]

Enable only this rule

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

Type to search…

↑↓ navigate ↵ open esc close