aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2022-09-22 11:46:12 +0200
committersonartech <sonartech@sonarsource.com>2022-09-22 20:03:33 +0000
commitd5ba777fbeaf073990cdc0dcb904cbe38d5aebb5 (patch)
treedec0ad07cc4c0ac5e44bac15ea620fbb777248a1 /server/sonar-web
parent6016243876d28339736e661f6f88dedb693c177e (diff)
downloadsonarqube-d5ba777fbeaf073990cdc0dcb904cbe38d5aebb5.tar.gz
sonarqube-d5ba777fbeaf073990cdc0dcb904cbe38d5aebb5.zip
SONAR-16906 [893103] Buttons must have discernible text
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx2
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap3
2 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
index eed5622d773..3b701394c64 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
+++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
@@ -233,7 +233,7 @@ export default class SourceViewerHeader extends React.PureComponent<Props, State
</ul>
}
overlayPlacement={PopupPlacement.BottomRight}>
- <ButtonIcon className="js-actions">
+ <ButtonIcon className="js-actions" aria-label={translate('component_viewer.action_menu')}>
<ListIcon />
</ButtonIcon>
</Dropdown>
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap b/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap
index db63a2fa2b5..032a2196c26 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap
@@ -107,6 +107,7 @@ exports[`should render correctly for a regular file 1`] = `
overlayPlacement="bottom-right"
>
<ButtonIcon
+ aria-label="component_viewer.action_menu"
className="js-actions"
>
<ListIcon />
@@ -240,6 +241,7 @@ exports[`should render correctly for a unit test 1`] = `
overlayPlacement="bottom-right"
>
<ButtonIcon
+ aria-label="component_viewer.action_menu"
className="js-actions"
>
<ListIcon />
@@ -504,6 +506,7 @@ exports[`should render correctly if issue details are passed 1`] = `
overlayPlacement="bottom-right"
>
<ButtonIcon
+ aria-label="component_viewer.action_menu"
className="js-actions"
>
<ListIcon />