diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2022-09-22 11:46:12 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-09-22 20:03:33 +0000 |
commit | d5ba777fbeaf073990cdc0dcb904cbe38d5aebb5 (patch) | |
tree | dec0ad07cc4c0ac5e44bac15ea620fbb777248a1 /server/sonar-web | |
parent | 6016243876d28339736e661f6f88dedb693c177e (diff) | |
download | sonarqube-d5ba777fbeaf073990cdc0dcb904cbe38d5aebb5.tar.gz sonarqube-d5ba777fbeaf073990cdc0dcb904cbe38d5aebb5.zip |
SONAR-16906 [893103] Buttons must have discernible text
Diffstat (limited to 'server/sonar-web')
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 /> |