aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2022-08-31 12:52:17 +0200
committersonartech <sonartech@sonarsource.com>2022-09-01 20:03:03 +0000
commit39b92139dff11afde629d4f6d2b2af54f5d3cbbc (patch)
tree634250c04b5459e10a5a82d16e591b3bd2a0f82c
parentd0feebf94738f1699ee189186c722c8caf0563f6 (diff)
downloadsonarqube-39b92139dff11afde629d4f6d2b2af54f5d3cbbc.tar.gz
sonarqube-39b92139dff11afde629d4f6d2b2af54f5d3cbbc.zip
SONAR-17020 Status message not automatically announced
-rw-r--r--server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewer.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/CrossComponentSourceViewer-test.tsx.snap4
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties2
3 files changed, 5 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewer.tsx b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewer.tsx
index 6fcd02d3a24..739e1eb92f9 100644
--- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewer.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewer.tsx
@@ -187,7 +187,7 @@ export default class CrossComponentSourceViewer extends React.PureComponent<Prop
if (loading) {
return (
<div>
- <DeferredSpinner />
+ <DeferredSpinner ariaLabel={translate('code_viewer.loading')} />
</div>
);
}
diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/CrossComponentSourceViewer-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/CrossComponentSourceViewer-test.tsx.snap
index bb4d3618332..beeb3c28c2b 100644
--- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/CrossComponentSourceViewer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/CrossComponentSourceViewer-test.tsx.snap
@@ -17,7 +17,9 @@ exports[`should handle duplication popup 1`] = `
exports[`should render correctly 1`] = `
<div>
- <DeferredSpinner />
+ <DeferredSpinner
+ ariaLabel="code_viewer.loading"
+ />
</div>
`;
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 f1966319dc2..68eb96a66b5 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -1467,7 +1467,7 @@ code_viewer.no_source_code_displayed_due_to_source_removed=The file was removed,
code_viewer.not_all_measures_are_shown=Not all projects and applications are included
code_viewer.not_all_measures_are_shown.help=You do not have access to all projects and/or applications.
code_viewer.portfolio_code_toggle_disabled.help=New Code and Overall Code measures are not available when searching for projects or applications.
-
+code_viewer.loading=Source code is loading
#------------------------------------------------------------------------------
#