WCAG 2.5.8: Target Size (Minimum)
WCAG 2.5.8 Target Size (Minimum): Ensuring Accessible Interactive Elements
WCAG 2.5.8 Target Size (Minimum) is a crucial WCAG 2.1 Level AA success criterion that focuses on the physical size of interactive elements. It mandates that the size of targets for pointer inputs (such as mouse clicks or touch input) must be at least 24 by 24 CSS pixels. This criterion is designed to make web content easier to operate for a wide range of users, particularly those who may struggle with precise movements.
Why Target Size Matters for Accessibility
The size of interactive elements directly impacts a user’s ability to successfully engage with a website or application. Small target sizes can lead to frustration, errors, and an inability to complete tasks for many user groups:
Understanding the Success Criterion 2.5.8 Requirements
The core requirement of WCAG 2.5.8 is straightforward:
Exceptions to the Rule
There are specific situations where the 24×24 CSS pixel minimum does not apply:
Practical Guidelines for Compliance
Achieving compliance with WCAG 2.5.8 involves careful design and implementation:
Examples of Correct and Incorrect Implementations
Correct Implementations
These examples demonstrate how to ensure interactive elements meet the 24×24 CSS pixel minimum target size.
HTML/CSS Button with Sufficient Size
An HTML button with explicit width and height, or padding, to ensure it meets the minimum size.
Text Link with Expanded Hit Area (Padding)
A text link that is visually small but has a larger interactive area due to padding and display property.
Input Field (Checkbox) with Enlarged Target via Label
While the checkbox itself might be small, associating it with a label ensures a larger clickable area.
Incorrect Implementations
These examples show common mistakes that lead to non-compliance with WCAG 2.5.8.
Small Icon Button Without Sufficient Padding
An icon that is visually small and has an equally small interactive area, making it hard to click.
Default Text Link with Insufficient Hit Area
A simple text link where only the text itself is clickable, and its height/width are determined solely by font size.
Best Practices and Common Pitfalls
By diligently adhering to WCAG 2.5.8 Target Size (Minimum), developers and designers can significantly enhance the usability and accessibility of web content, creating a more inclusive experience for all users.
Related posts
- WCAG 5.2.3: Complete processes
- WCAG 5.2.4: Only Accessibility-Supported Ways of Using Technologies
- WCAG 5.2.5: Non-Interference
- WCAG 5.3.1: Required elements of the conformity declaration
- WCAG 5.3.2: Optional Components of a Conformance Claim
Still looking for answers?
Ask our experts using online chat