]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16906 [893103] Buttons must have discernible text
authorJeremy Davis <jeremy.davis@sonarsource.com>
Thu, 22 Sep 2022 09:46:12 +0000 (11:46 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 22 Sep 2022 20:03:33 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index eed5622d773cdf56e03ef57d6dc5dac5ede1207d..3b701394c641bb64cefb021828f6bf6b77f9b5f0 100644 (file)
@@ -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>
index db63a2fa2b589d718b4ff195b3ffc55678c99bea..032a2196c26e6b2344f8cf10973da1ddd71659a6 100644 (file)
@@ -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 />
index 9fe2a9d9d771df3f08361c628e761d548ec8c66c..b0ee0fb6e02dc59dcb9b2ad665d329c6a770a6c4 100644 (file)
@@ -2856,6 +2856,7 @@ component_viewer.file_measures=File measures
 component_viewer.show_all_measures=Show all measures
 component_viewer.no_component=The component has been removed or never existed.
 component_viewer.copy_path_to_clipboard=Copy the file path to the clipboard
+component_viewer.action_menu=File actions menu
 
 source_viewer.view_all_issues=See all issues in this file
 source_viewer.expand_all_lines=Show all lines of code