aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues
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 /server/sonar-web/src/main/js/apps/issues
parentd0feebf94738f1699ee189186c722c8caf0563f6 (diff)
downloadsonarqube-39b92139dff11afde629d4f6d2b2af54f5d3cbbc.tar.gz
sonarqube-39b92139dff11afde629d4f6d2b2af54f5d3cbbc.zip
SONAR-17020 Status message not automatically announced
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues')
-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
2 files changed, 4 insertions, 2 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>
`;