Component Library
Buttons with the same name
Issue Description
For user interface components with labels that include text or images of text, the accessible name does not contain the text that is presented visually.
Recommendation
Use labels that visually identify elements.
- For user interface components with labels that include text or images of text, the name contains the text that is presented visually.
- The label element identifies the control to all users. It is generally visible text. The label is often used as the name, such as the word Search preceding a search text entry field, or the text of a link.
Speech input users benefit from intuitive and proper labels that can be discerned from the visible presentation, and confusion results when the labels and visual presentation do not match.