{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-touch-targets-4c6104c7ca32","title":"Ensure Sufficient Touch Target Size for Accessibility","summary":"This skill ensures that all interactive elements on touchscreen interfaces meet accessibility guidelines for touch target size, improving usability for users with disabilities or limited dexterity. The deliverable is a set of CSS adjustments that increase touch target size to at least 24\u00d724 CSS pixels (WCAG 2.2 AA) or 44\u00d744 CSS pixels (WCAG 2.2 AAA) without altering the visual appearance.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-touch-targets-4c6104c7ca32","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-touch-targets-4c6104c7ca32","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-touch-targets-4c6104c7ca32.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-touch-targets-4c6104c7ca32\/download","category":{"slug":"product-design","name":"Product & Design"},"editor_note":"Before applying fixes, ensure that the CSS for interactive elements is reviewed for existing `min-width`, `min-height`, `width`, `height`, and `padding` properties. Inline text links are exempt from WCAG 2.2 SC 2.5.8 and do not require additional spacing.","instructions":"---\nname: touch-targets\ndescription: \"Use when applies to all interactive elements on touchscreen interfaces: buttons, links, checkboxes, radio buttons, form inputs, icon buttons, and menu items. Check CSS for min-width, min-height, width, height, and padding on interactive elements. Particularly important for icon-only buttons (close, delete, share) which are often made too small.\"\nmetadata:\n  category: accessibility\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/touch-targets\n---\n\n# Provide sufficient touch target size\n\nMotor disabilities such as essential tremor, Parkinson's disease, hemiplegia, and spasticity make it difficult to tap small targets with precision. A 24\u00d724px icon button with no padding requires a fine-motor action that many users simply cannot perform. Insufficient tap target size is one of the most common barriers for users with mobility impairments on mobile and tablet devices. Even users without disabilities benefit from larger targets, reducing accidental activations.\n\n## Quick Reference\n\n- WCAG 2.2 SC 2.5.5 (AAA): touch targets must be at least 44\u00d744 CSS pixels\n- WCAG 2.2 SC 2.5.8 (AA, new in WCAG 2.2): targets must be at least 24\u00d724 CSS pixels OR have 24px of spacing from other targets\n- Apple HIG recommends 44\u00d744 pt minimum; Google Material Design recommends 48\u00d748 dp minimum\n- Use `padding` to enlarge the interactive area without changing the visual size\n- Inline text links are exempt from SC 2.5.8\n\n## Check\n\nFind all interactive elements: `<button>`, `<a>`, `<input>`, `<select>`, `<textarea>`, and elements with click\/touch event handlers or `role='button'`. For each, compute the rendered bounding box size (including padding). Flag elements whose width or height is less than 24px (WCAG 2.2 AA threshold) or less than 44px (AAA \/ platform guidelines). Also check spacing: elements smaller than 44px should have at least 24px of clear space from adjacent interactive elements.\n\n## Fix\n\nTo increase touch target size without changing visual appearance: (1) Add `padding` to the element \u2014 e.g., `padding: 12px` on a button adds 12px to each side of the visual content. (2) Use `min-width` and `min-height` to enforce a floor: `min-width: 44px; min-height: 44px`. (3) For icon-only buttons, use a transparent pseudo-element to extend the hit area: `.icon-btn::before { content: ''; position: absolute; inset: -12px; }` with `position: relative` on the button. (4) Ensure adequate spacing between small targets so users do not accidentally activate the wrong element.\n\n## Explain\n\nWCAG 2.2 introduced SC 2.5.8 (Target Size, Minimum) at Level AA, requiring touch targets to be at least 24\u00d724 CSS pixels or have 24px of offset spacing from neighboring targets. The older SC 2.5.5 (Target Size) at Level AAA recommends 44\u00d744px. These thresholds are based on average human fingertip size (approximately 10mm) and the precision required for touchscreen interaction. Users with tremors or limited dexterity need larger targets because their touch point can deviate by 20\u201330px from where they intend. The 44px recommendation aligns with Apple's Human Interface Guidelines and Google's Material Design system.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Provide sufficient touch target size. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/accessibility\/touch-targets\n","use_cases":["Ensure buttons, links, and icons on mobile interfaces are large enough for touch interaction.","Fix small touch targets that may be difficult to activate for users with limited dexterity.","Comply with WCAG 2.2 accessibility standards for touchscreen interfaces."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/touch-targets\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T05:59:26.000000Z","updated_at":"2026-11-24T07:12:47.000000Z","seo_title":"Ensure Sufficient Touch Target Size for Accessibility","seo_description":"Ensure all interactive elements on touchscreen interfaces meet accessibility guidelines for touch target size. Improve usability for users with disabilities or limited d.","seo_keywords":["touch target size accessibility","WCAG 2.2 touch targets","mobile accessibility guidelines","touch target minimum size","accessibility touch targets"]}}