# Ensure Toggle Fields Have Accessible Names

Ensure checkboxes, radios, and switches have accessible names for screen reader users by using labels, aria-label, or aria-labelledby. This ensures users understand the purpose of each toggle field.

**Canonical URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-aria-toggle-field-name-578ff9b5f05b

**JSON URL:** https://skillshunter.net/api/public/v1/skills/github-thedaviddias-front-end-checklist-skills-aria-toggle-field-name-578ff9b5f05b

**Markdown URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-aria-toggle-field-name-578ff9b5f05b.md

**Instructions download URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-aria-toggle-field-name-578ff9b5f05b/download

**Category:** Software & Development

**Source URL:** https://github.com/thedaviddias/Front-End-Checklist/blob/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/aria-toggle-field-name/SKILL.md

**Source commit:** e8d14d049010e2ce25afcd5e8609dfcbbe63e47e

**Listing approved at:** 2026-11-23

**Created at:** 2026-11-22T15:15:00.000000Z

**Updated at:** 2026-11-23T04:54:44.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Ensure that labels clearly describe the state or action of the toggle and avoid empty or non-descriptive labels for switches.

### When to use it

- Ensure checkboxes and switches have descriptive labels for screen reader users.
- Verify that interactive toggle controls are accessible via keyboard and screen readers.

## Skill instructions

---
name: aria-toggle-field-name
description: "Use when reviewing rendered HTML, interactive components, or design-system patterns related to Provide accessible names for toggle fields. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant."
metadata:
  category: accessibility
  priority: medium
  difficulty: intermediate
  estimatedTime: "10"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/accessibility/aria-toggle-field-name
---

# Provide accessible names for toggle fields

Toggle fields like checkboxes and switches are unusable for screen reader users if they don't have a label, as the user won't know what they are turning on or off.

## Quick Reference

- Use `aria-label`, `aria-labelledby`, or `<label>` for checkboxes and radios
- Ensure the label clearly describes the state or action of the toggle
- Avoid empty or non-descriptive labels for switches

## Check

Check all toggle fields (checkboxes, radio buttons, switches) for a valid accessible name.

## Fix

Add an accessible name to the toggle field using a label element, aria-label, or aria-labelledby.

## Explain

Explain why all interactive toggle controls must have descriptive names for users to understand their purpose.

## Code Review

Review the rendered markup and interactive states that affect Provide accessible names for toggle fields. 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.

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/accessibility/aria-toggle-field-name

