Skip to content

fix(z-input): increase radio/checkbox label target size for WCAG 2.5.8#633

Open
ada-workbackai wants to merge 1 commit intomasterfrom
workbackai/fix/wcag-2.5.8-radio-target-size
Open

fix(z-input): increase radio/checkbox label target size for WCAG 2.5.8#633
ada-workbackai wants to merge 1 commit intomasterfrom
workbackai/fix/wcag-2.5.8-radio-target-size

Conversation

@ada-workbackai
Copy link
Copy Markdown
Contributor

Summary

Fixes WCAG 2.5.8 (Target Size - Minimum) by increasing the clickable area of radio button and checkbox labels in the z-input component.

Issue: Radio and checkbox labels were only 18px in height, failing WCAG 2.5.8 Level AA which requires a minimum 24×24 CSS pixel target size for pointer inputs.

Solution: Added vertical padding (3px top/bottom) and min-height (24px) to .radio-label and .checkbox-label classes, ensuring the clickable target area meets accessibility requirements.

Impact

Users with motor impairments, including those with tremors, reduced dexterity, or using touch devices, will now have an easier time selecting radio buttons and checkboxes throughout the Zanichelli applications.

Test Plan

  • Verified label height increased from 18px to 30px
  • Tested visual appearance maintains design consistency
  • Confirmed clickable area now meets WCAG 2.5.8 requirements (≥24px)
  • Verified fix applies to both radio buttons and checkboxes

Evidence

View before/after screenshots and full audit details:
https://app.workback.ai/dashboard/issue/5071/


WCAG Reference:
2.5.8 Target Size (Minimum)

Radio and checkbox labels were only 18px high, failing WCAG 2.5.8 Level AA
which requires minimum 24x24px target size for pointer inputs.

Added vertical padding (3px top/bottom) and min-height (24px) to ensure
labels meet accessibility requirements for users with motor impairments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant