Skip to content

Button with aria-describedby

What it sounds like

Add, Button. 10 items selected.

We can use aria-describedby to additional context and information about the button.

What it looks like

10 items selected

<p id="selected-count">10 items selected</p>

<button type="button" aria-describedby="selected-count">Add</button>