Basic accessibility and semantics for file browser
What does this MR do and why?
This MR fixes accessibility issues with File browser in merge requests:
- Uses proper
<button>tag for file tree entries - Removes
<button>tag from the status icon - Divides file browser into 2 sections: header and file tree navigation
- Hides total files counter from screen readers because it's redundant (the same counter is already present on the page)
Screenshots or screen recordings
No visual change.
Screen_Recording_2025-04-30_at_05.37.16
How to set up and validate locally
- Go to any merge request
- Select 'Changes' tab
- Open the file browser
- Use a screen reader to navigate through files in the file browser
- Basic features should work, regions should be properly announced
Edited by Stanislav Lashmanov