[SG-35295] Tree page (post-redesign): Navigation links are reported as buttons
Created by: gitstart-sourcegraph
Description
In the redesign these items should function as links (they navigate) and a navigation list This is not the case:
- Screen reader reports these as buttons
- Screen reader loses focus when a button is clicked
Expected behavior
- Remove role="button" from these links.
- Wrap this links in
<ul>
and<li>
- Wrap the list in a
<nav>
element - so it is reported as a navigation list to a screen reader - Check if focus is still lost when selecting a button using a keyboard: a. If still not fixed, we can manually move the focus to the new page through JS.
Refs
Sourcegraph Issue Gitstart Ticket
Test Plan
https://www.loom.com/share/95c4e8a8f1e44d58b1a9320451997605
App preview:
Check out the client app preview documentation to learn more.