Add alt text descriptions to branch graph and avatar
What does this MR do and why?
Add alt text descriptions to branch graph and avatar
The branch graph avatars did not have alt text to support screen readers. Added text to identify the author for each commit to screen readers.
Changelog: fixed
References
Closes https://gitlab.com/gitlab-org/gitlab/-/issues/511609
Screenshots or screen recordings
How to set up and validate locally
- See comment about local config change from @psjakubowska on the original issue to get branch graph running in GDK
- Start local GDK as normal
- Navigate to a project like Twitter typeahead that has a lot of good branch history
- Then add
-/network/master?ref_type=headsto the end of your local URL -
OR select
Code > Repository Graphin the left nav - Start a screen reader of your choosing. Please select from one of the preferred pairings:
- VoiceOver + Safari on MacOS
- NVDA + Chrome|Firefox on Win11
- JAWS + Chrome on Win11
- Navigate to the branch graph. You should be able to
TABto the containing DIV. - Verify the accessible description is read aloud.
- Now you'll have to
Down_ArroworCtrl + Opt + Left_Arrowthrough the graph calendar until you get to the avatars - Verify the avatar image is read as "Authored by PERSON_NAME"
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
