diff options
Diffstat (limited to 'server/sonar-web')
2 files changed, 8 insertions, 1 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 e5695f6ec99..c8875ca4beb 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 @@ -121,7 +121,10 @@ export default function IssueSourceViewerHeader(props: Props) { {expandable && ( <DeferredSpinner className="little-spacer-right" loading={loading}> <div className="flex-0 big-spacer-left"> - <ButtonIcon className="js-actions" onClick={onExpand}> + <ButtonIcon + aria-label={translate('source_viewer.expand_all_lines')} + className="js-actions" + onClick={onExpand}> <ExpandSnippetIcon /> </ButtonIcon> </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 da1a9623544..aa530aecd30 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 @@ -73,6 +73,7 @@ exports[`should render correctly 1`] = ` className="flex-0 big-spacer-left" > <ButtonIcon + aria-label="source_viewer.expand_all_lines" className="js-actions" onClick={[MockFunction]} > @@ -151,6 +152,7 @@ exports[`should render correctly: no link to project 1`] = ` className="flex-0 big-spacer-left" > <ButtonIcon + aria-label="source_viewer.expand_all_lines" className="js-actions" onClick={[MockFunction]} > @@ -218,6 +220,7 @@ exports[`should render correctly: no project name 1`] = ` className="flex-0 big-spacer-left" > <ButtonIcon + aria-label="source_viewer.expand_all_lines" className="js-actions" onClick={[MockFunction]} > @@ -261,6 +264,7 @@ exports[`should render correctly: project root 1`] = ` className="flex-0 big-spacer-left" > <ButtonIcon + aria-label="source_viewer.expand_all_lines" className="js-actions" onClick={[MockFunction]} > |