[Accessibility]: Improve screen reader compatibility with copy path button
Created by: umpox
- Adds a label to the button, so screen readers can understand what clicking the button will do.
- Adds a
screenReaderAnnounce
to inform screen readers that the action was successful.
Audit issue: https://github.com/sourcegraph/sourcegraph/issues/34418
Test plan
Tested locally with a screen reader
App preview:
Check out the client app preview documentation to learn more.