The accessible name for this <button> should be: Goodbye world
Not recommended. The accessible name does not match the visible text, which can cause problems for screen reader and voice control users.
<button aria-label="Goodbye world">Hello</button>
The accessible name for this <button> should be: Close dialog
Recommended. The accessible name begins with the visible text and provides additional context, making it easier for screen reader and voice control users.
<button aria-label="Close dialog">Close</button>
The accessible name for this <button> should be: Submit
Recommended. The visible text provides the accessible name, so screen reader and voice control users receive the same label that appears on screen.
<button>Submit</button>