aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2022-08-09 14:29:52 +0200
committersonartech <sonartech@sonarsource.com>2022-08-11 20:03:48 +0000
commitb135b4db8e55e045631792ac4323e32f2278a348 (patch)
treecb0d641e4a73172377313d27f1287e1f1984381f
parent8fb3f5912ee9b1e87431c54982e268eb5bbfc2ce (diff)
downloadsonarqube-b135b4db8e55e045631792ac4323e32f2278a348.tar.gz
sonarqube-b135b4db8e55e045631792ac4323e32f2278a348.zip
SONAR-16782 [893373] Status message not automatically announced
-rw-r--r--server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/IssueSourceViewerHeader.tsx6
-rw-r--r--server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/IssueSourceViewerHeader-test.tsx.snap3
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties7
3 files changed, 12 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/IssueSourceViewerHeader.tsx b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/IssueSourceViewerHeader.tsx
index 7bbee7fcc1e..cd749078555 100644
--- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/IssueSourceViewerHeader.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/IssueSourceViewerHeader.tsx
@@ -92,7 +92,11 @@ export default function IssueSourceViewerHeader(props: Props) {
</div>
<div className="spacer-right">
- <ClipboardIconButton className="button-link link-no-underline" copyValue={path} />
+ <ClipboardIconButton
+ className="button-link link-no-underline"
+ copyValue={path}
+ aria-label={translate('source_viewer.click_to_copy_filepath')}
+ />
</div>
</>
)}
diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/IssueSourceViewerHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/IssueSourceViewerHeader-test.tsx.snap
index fb3dd212fc1..e571d0d0e36 100644
--- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/IssueSourceViewerHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/IssueSourceViewerHeader-test.tsx.snap
@@ -45,6 +45,7 @@ exports[`should render correctly 1`] = `
className="spacer-right"
>
<ClipboardIconButton
+ aria-label="source_viewer.click_to_copy_filepath"
className="button-link link-no-underline"
copyValue="foo/bar.ts"
/>
@@ -122,6 +123,7 @@ exports[`should render correctly: no link to project 1`] = `
className="spacer-right"
>
<ClipboardIconButton
+ aria-label="source_viewer.click_to_copy_filepath"
className="button-link link-no-underline"
copyValue="foo/bar.ts"
/>
@@ -188,6 +190,7 @@ exports[`should render correctly: no project name 1`] = `
className="spacer-right"
>
<ClipboardIconButton
+ aria-label="source_viewer.click_to_copy_filepath"
className="button-link link-no-underline"
copyValue="foo/bar.ts"
/>
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index b5b4b70602c..8f82d26b541 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -253,8 +253,8 @@ bulleted_point=Bulleted point
clear=Clear
clear_all_filters=Clear All Filters
coding_rules=Rules
-copy_to_clipboard=Click to copy to Clipboard
-copied_action=Copied to Clipboard
+copy_to_clipboard=Click to copy to clipboard
+copied_action=Copied to clipboard
created_by=Created by
default_error_message=The request cannot be processed. Try again later.
default_severity=Default severity
@@ -2813,7 +2813,7 @@ component_viewer.show_raw_source=Show Raw Source
component_viewer.more_actions=More Actions
component_viewer.new_window=Open in New Window
component_viewer.open_in_workspace=Pin This File
-component_viewer.copy_permalink=Copy Permalink
+component_viewer.copy_permalink=Click to copy permalink to clipboard
component_viewer.covered_lines=Covered Lines
component_viewer.show_details=Show Measures
component_viewer.file_measures=File measures
@@ -2828,6 +2828,7 @@ source_viewer.conditions=conditions
source_viewer.line_X=Line: {0}
source_viewer.click_for_scm_info=Click to see SCM information
source_viewer.author_X=Author: {0}
+source_viewer.click_to_copy_filepath=Click to copy the filepath to clipboard
source_viewer.tooltip.duplicated_line=This line is duplicated. Click to see duplicated blocks.
source_viewer.tooltip.duplicated_block=Duplicated block. Click for details.