Skip to content

Small clickable area #58

@JenM00re

Description

@JenM00re

Alert: Label Would Increase Clickable Area

An associated would increase the clickable area of this element.

Why did ANDI alert this?

This radio button or checkbox does not have an associated and the size of the radio button or checkbox is less than 21px by 21px.

Why is this an accessibility concern?

People with motor disabilities who can used a mouse may have trouble clicking on a small target less than 21px by 21px. Note: This size limit (21px by 21px) is arbitrarily determined and not an official WCAG requirement.

What should be done?

Adding an associated to a radio button or checkbox allows a mouse user to click on the label to select the radio button or checkbox. This increases the size of the clickable area. An associated is also a standard way of providing an accessible name for a radio button or checkbox.

Steps to reproduce the behavior:

  1. Log in to https://swarthmore-a11ygator.vercel.app/
  2. Note small clickable area for dark/light mode.

Add an associated label to the switcher.

Small clickable dark/light mode button

Desktop (please complete the following information):

  • Mac OS 15.4.1 (24E263)
  • Chrome
  • Version 136.0.7103.93 (Official Build) (arm64)

Label Would Increase Clickable Area | ANDI docs

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions