The person must leave the button list and inspect surrounding content to discover which product each action affects.
<button>Add to cart</button>Commerce · Concept
Three visible “Add to cart” buttons can stay visually consistent while their accessible names identify which product each one affects.
The principle
Keep the visible action words. Add the missing product context to the accessible name.
Button lists
Screen-reader users can navigate a list of buttons without hearing all nearby content. If every name is “Add to cart,” the choices are indistinguishable.
The person must leave the button list and inspect surrounding content to discover which product each action affects.
<button>Add to cart</button>The visible phrase remains intact for speech input, while each accessible name is unique.
<button>
Add to cart
<span class="visually-hidden"> — Harbor trail boot</span>
</button>Live pattern
Activate any button. Its hidden product context is also used in the visible and announced confirmation.
$128
$84
$156
Naming rules
Speech-input users often say the visible words to activate a control. The accessible name should contain that visible label, preferably at the beginning and in the same order.
“Add to cart — Harbor trail boot” contains the complete visible label.
aria-label="Buy Harbor boot" replaces the visible words and can break voice commands.
A clickable outer card containing a title link and button creates nested or competing interactive targets.
Quick test