aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2020-10-01 11:42:37 +0200
committersonartech <sonartech@sonarsource.com>2020-10-02 20:07:42 +0000
commit2010ef3ed9580c990d7202c182f915edb3cc6053 (patch)
treeb7aa03fc8c374acf8cbff58c2994874555ee10fe /server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
parentcacdd3c3a1e622322be8095398c0d868e0961b35 (diff)
downloadsonarqube-2010ef3ed9580c990d7202c182f915edb3cc6053.tar.gz
sonarqube-2010ef3ed9580c990d7202c182f915edb3cc6053.zip
SONAR-12996 Make copy-path-to-clipboard button more accessible
Diffstat (limited to 'server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
index 48b0b8d0b00..20ccd738614 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
+++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
@@ -149,7 +149,11 @@ export default class SourceViewerHeader extends React.PureComponent<Props, State
<QualifierIcon qualifier={q} /> <span>{collapsedDirFromPath(path)}</span>
<span className="component-name-file">{fileFromPath(path)}</span>
<span className="nudged-up spacer-left">
- <ClipboardIconButton className="button-link link-no-underline" copyValue={path} />
+ <ClipboardIconButton
+ aria-label={translate('component_viewer.copy_path_to_clipboard')}
+ className="button-link link-no-underline"
+ copyValue={path}
+ />
</span>
</div>
</div>