<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/it-needs-to-map-back-to-a-role-oct9d8bjf" -->

---
title: It needs to map back to a role | daily.dev
description: An accessibility-focused explainer on WCAG Success Criterion 4.1.2 (Name, Role, Value), arguing that any new UI pattern must map back to an existing ARIA or...
canonical: https://daily.dev/posts/it-needs-to-map-back-to-a-role-oct9d8bjf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: It needs to map back to a role | daily.dev
og:description: An accessibility-focused explainer on WCAG Success Criterion 4.1.2 (Name, Role, Value), arguing that any new UI pattern must map back to an existing ARIA or...
og:url: https://daily.dev/posts/it-needs-to-map-back-to-a-role-oct9d8bjf
og:image: https://api.daily.dev/og/posts/oCt9d8bJf.png
og:image:alt: It needs to map back to a role
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# It needs to map back to a role

**[Eric Bailey](https://daily.dev/sources/ericwbailey)** · 7 min read · 0 upvotes · 0 comments

## Summary

An accessibility-focused explainer on WCAG Success Criterion 4.1.2 (Name, Role, Value), arguing that any new UI pattern must map back to an existing ARIA or HTML role to work with assistive technology. It walks through what name, role, and value mean, explains why inventing custom roles (like role="gumball") doesn't work because assistive tech doesn't recognize them, and describes how roles originate from slow-moving platform API standardization processes. The piece closes advocating for 'Shift Left' methodology, involving disabled people early in the design process.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ericwbailey.website/published/it-needs-to-map-back-to-a-role>

## Questions this post answers

### Why doesn't a custom ARIA role like role="gumball" work with screen readers?

Assistive technology only recognizes roles from its internal dictionary of known keywords, so a made-up value like "gumball" is simply ignored. Because the role isn't understood, none of the expected behaviors or interaction hints get communicated to the person using assistive technology, making the element effectively inoperable for them.

_daily.dev surfaces accessibility deep dives for developers deciding how to make custom UI components usable._

### What are the three requirements of WCAG Success Criterion 4.1.2 Name, Role, Value?

Every interactive element needs a unique accessible name, a role indicating what kind of control it is, and, when applicable, a value representing user-entered or selected content. Names let assistive technology and voice control distinguish elements, roles come from HTML semantics or ARIA, and values communicate choices like text entered into an input field.

_Developers building accessible components can track WCAG guidance like this through daily.dev._

## Similar posts on daily.dev

- [Read Me First](https://daily.dev/posts/read-me-first-3vaevawvz) · Hacker News · 1 upvotes · 0 comments
- [I Learned The First Rule of ARIA the Hard Way](https://daily.dev/posts/i-learned-the-first-rule-of-aria-the-hard-way-bf3esumgq) · CSS-Tricks · 210 upvotes · 12 comments
- [Why Accessibility Is An Operational Capability, Not A Feature — Smashing Magazine](https://daily.dev/posts/why-accessibility-is-an-operational-capability-not-a-feature-smashing-magazine-vush3kmuc) · Smashing Magazine · 5 upvotes · 0 comments
- [How to Build More Accessible Websites with WCAG 2.2](https://daily.dev/posts/how-to-build-more-accessible-websites-with-wcag-2-2-ionjqlod0) · freeCodeCamp · 2 upvotes · 0 comments
- [An Accessible Guide to WCAG 3.3.9: Going for Gold](https://daily.dev/posts/an-accessible-guide-to-wcag-3-3-9-going-for-gold-n3cbqqeio) · Auth0 · 0 upvotes · 0 comments

---

Tags: [#html](https://daily.dev/tags/html), [#accessibility](https://daily.dev/tags/accessibility)

[View this post on daily.dev](https://daily.dev/posts/it-needs-to-map-back-to-a-role-oct9d8bjf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"It needs to map back to a role","url":"https://daily.dev/posts/it-needs-to-map-back-to-a-role-oct9d8bjf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/it-needs-to-map-back-to-a-role-oct9d8bjf"},"datePublished":"2026-09-20T07:43:53.624Z","dateModified":"2026-09-20T07:47:21.263Z","description":"An accessibility-focused explainer on WCAG Success Criterion 4.1.2 (Name, Role, Value), arguing that any new UI pattern must map back to an existing ARIA or...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cb10f178805900873b3f95b4a150fe76?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cb10f178805900873b3f95b4a150fe76?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Eric Bailey","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Eric Bailey","logo":"https://media.daily.dev/image/upload/s--r1vwe6z1--/f_auto,q_auto/v1789890198/logos/ericwbailey?_a=BAMAMicg0","url":"https://daily.dev/sources/ericwbailey"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/it-needs-to-map-back-to-a-role-oct9d8bjf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"html,accessibility","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Eric Bailey","item":"https://daily.dev/sources/ericwbailey"},{"@type":"ListItem","position":3,"name":"It needs to map back to a role"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/it-needs-to-map-back-to-a-role-oct9d8bjf#faq","mainEntity":[{"@type":"Question","name":"Why doesn't a custom ARIA role like role=\"gumball\" work with screen readers?","acceptedAnswer":{"@type":"Answer","text":"Assistive technology only recognizes roles from its internal dictionary of known keywords, so a made-up value like \"gumball\" is simply ignored. Because the role isn't understood, none of the expected behaviors or interaction hints get communicated to the person using assistive technology, making the element effectively inoperable for them. daily.dev surfaces accessibility deep dives for developers deciding how to make custom UI components usable."}},{"@type":"Question","name":"What are the three requirements of WCAG Success Criterion 4.1.2 Name, Role, Value?","acceptedAnswer":{"@type":"Answer","text":"Every interactive element needs a unique accessible name, a role indicating what kind of control it is, and, when applicable, a value representing user-entered or selected content. Names let assistive technology and voice control distinguish elements, roles come from HTML semantics or ARIA, and values communicate choices like text entered into an input field. Developers building accessible components can track WCAG guidance like this through daily.dev."}}]}
```

