1
0
Fork 0
polaris-task-force/tests/audit
Z8MB1E 5765492494 test(audit): measure effective tap targets and report violation tiers
Raw element boxes overstated violations, so the check now measures what a
user actually taps, and reports the tiers separately (violation under
24px, marginal 24-39px, inline-exempt):

- effective target is the wrapping label, or label[for] for small
  checkables only. Verified in the browser that clicking a label toggles
  its Radix Switch (label rows are 84px tall); a Select's 14px caption
  label is not charged because its 36px trigger is the real target
- stretched-link cards (after:absolute inset-0) are measured on the
  positioned ancestor, not the 18px anchor inside
- sr-only proxy controls (under 8px) and input[type=range] are excluded
  (a slider's thumb is the target, not the 4px track)
- display:inline anchors in prose get the WCAG 2.5.8 inline exception and
  are reported as tapTargetInlineText
- refreshed baseline: 0 violations, 573 marginal, 6 inline, 1 hidden
2026-10-12 22:17:58 -04:00
..
mobile-audit-report.json test(audit): measure effective tap targets and report violation tiers 2026-10-12 22:17:58 -04:00
mobile-audit-report.md test(audit): measure effective tap targets and report violation tiers 2026-10-12 22:17:58 -04:00
mobile-audit.ts test(audit): measure effective tap targets and report violation tiers 2026-10-12 22:17:58 -04:00