Accessible Name Computation Playground

Every element on the Balai’s board wears the name it is announced by: title, aria-label, content, aria-labelledby and label compete. Which one wins? The…

Why it matters

The accessible name is what a screen reader says and what a voice-control user calls out ("click Kirim"). Get it wrong and a button is read as just "button", or read differently from what is shown. Testing Library finds elements by that same name (getByRole(…, { name })).

The key idea

The browser takes ONE source, in order, and stops there

Common mistakes

Try it in this playground