diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2020-10-01 11:42:37 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-10-02 20:07:42 +0000 |
commit | 2010ef3ed9580c990d7202c182f915edb3cc6053 (patch) | |
tree | b7aa03fc8c374acf8cbff58c2994874555ee10fe /server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx | |
parent | cacdd3c3a1e622322be8095398c0d868e0961b35 (diff) | |
download | sonarqube-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.tsx | 6 |
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> |