diff options
author | Mathieu Suen <mathieu.suen@sonarsource.com> | 2022-08-31 12:52:17 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-09-01 20:03:03 +0000 |
commit | 39b92139dff11afde629d4f6d2b2af54f5d3cbbc (patch) | |
tree | 634250c04b5459e10a5a82d16e591b3bd2a0f82c | |
parent | d0feebf94738f1699ee189186c722c8caf0563f6 (diff) | |
download | sonarqube-39b92139dff11afde629d4f6d2b2af54f5d3cbbc.tar.gz sonarqube-39b92139dff11afde629d4f6d2b2af54f5d3cbbc.zip |
SONAR-17020 Status message not automatically announced
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 #------------------------------------------------------------------------------ # |