Give every control a unique name
Hard
Rule. Give every control a name, and make each name unique on the screen.
Why. Screen readers and AI agents find controls by name, so a repeated "Edit" button tells them nothing.
- Name the action and the object: "More actions for Jane Cho".
- Use the visible text as the name when the control has text.
- Add a text label next to an icon when space allows.
Do. Each icon button has its own name.
Don't. Both buttons read "More". A listener cannot tell which row.