Skip to content

[SG-34973]Accessibility: Commits page - Copy SHA button does not inform screen readers of status

Warren Gifford requested to merge contractors/SG-34973 into main

Created by: gitstart-sourcegraph

Audit type

Screen reader navigation

User journey audit issue[

#34423

Description

Currently, the screen reader doesn't announce when the git commit is copied to the clipboard.

Button State 1: buttonstate1

Button State 2: buttonstate2

Refs

SourceGraph Issue GitStart Issue

Expected behavior

We should use screenReaderAnnounce to quickly inform users when this state changes.

Test Plan

  • Navigate to Git Commits
  • Use the screen reader and on the copy icon, it should announce the label Copy full SHA.
  • Clicking on the copy icon should announce Copied!

Test Loom Video

https://www.loom.com/share/18b8593c06ae43cbb28c2868341e2c88

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading