A checkout button can show a trash icon while a screen reader announces only “button.” A custom delivery selector can display “Express” on screen while assistive technology still reports “Standard.” In both cases, visitors are missing information they need to complete a task. The fix starts with what the browser exposes about each control.
What does WCAG require?
Name, Role, Value (4.1.2) is Level A in WCAG 2.0, 2.1, and 2.2. For every user interface component, including links and scripted controls, software must be able to determine the accessible name (what identifies the control) and role (what kind of control it is). Assistive technology uses this information to identify controls such as a “Delivery speed” dropdown.
States, properties, and values that users can change must also be settable through software. The browser and assistive technology must be able to receive updates when those details change. Think of a checkbox becoming checked, a disclosure opening, or a slider moving from 20 to 30. Apply these requirements to the information relevant to each control. There is no numeric threshold or exception for custom controls or icon-only designs.
Common accessibility issues
- An icon-only button has no accessible name, or a field appears next to a caption that is disconnected in the markup.
- A clickable
divlooks like a button but exposes no button role. - A custom switch changes color while its exposed checked state stays the same.
- A copied component reuses an ID, so its label reference resolves to the wrong label.
How to improve accessibility
- Start with native HTML. Use a button for an action, a link with an
hreffor navigation, and a labeled form element for input. Use visible text as the name wherever practical. Give an icon-only button a name that describes its action. - Expose what changes. Use the native control's built-in state and value where possible. If you build a custom control, use supported WAI-ARIA roles and attributes to describe it to assistive technology. Implement its expected keyboard behavior and update the exposed state or value every time the interface changes.
- Fix shared components at the source. If the same control fails across several pages, correct the template or component and check multiple instances after the fix.
<label>
<input type="checkbox" name="delivery_updates">
Email me delivery updates
</label>
The label provides the name. The browser exposes the checkbox role and its current checked state.
Understanding automated and manual checks
Automated checks can flag missing names, invalid ARIA, and some broken references. The SimplifyAccess Accessibility Scanner checks for accessible names on links, buttons, and form fields. Use flagged elements as starting points for repairs in your markup.
Manually inspect the browser's accessibility tree, which shows what the browser exposes to assistive technology. Then operate the control with a keyboard and screen reader. Check that the name makes sense, the role matches the behavior, and changes are conveyed during use. Repeat in states that appear only after interaction. An automated pass covers only the conditions the tool checked.
Related accessibility requirements
WCAG 2.1.1 Keyboard covers whether functionality can be operated from a keyboard. WCAG 2.5.3 Label in Name covers whether a visible text label is included in the accessible name. WCAG 3.3.2 Labels or Instructions covers the labels or instructions people need when entering information.
