]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11772 Make project activity graph on Overview more accessible
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Fri, 21 Jun 2019 11:41:37 +0000 (13:41 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 28 Jun 2019 06:45:47 +0000 (08:45 +0200)
server/sonar-web/src/main/js/components/preview-graph/PreviewGraph.tsx
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 917bed05128bc1cc2575635eeab835c23253a438..bbd954e03a70f8fd9f7b577a27d2e78453787157 100644 (file)
@@ -34,6 +34,7 @@ import {
 } from '../../apps/projectActivity/utils';
 import { formatMeasure, getShortType } from '../../helpers/measures';
 import { getBranchLikeQuery } from '../../helpers/branches';
+import { translate } from '../../helpers/l10n';
 import { withRouter, Router } from '../hoc/withRouter';
 
 interface History {
@@ -184,6 +185,7 @@ class PreviewGraph extends React.PureComponent<Props, State> {
 
     return (
       <div
+        aria-label={translate('overview.project_activity.click_to_see')}
         className="overview-analysis-graph big-spacer-bottom spacer-top"
         onClick={this.handleClick}
         role="link"
index 920dd83559795a57c9b31665153d9cac61d88f02..cbc7f60daee5b28747c976e1d66ae7edc6f60030 100644 (file)
@@ -2453,6 +2453,7 @@ overview.about_this_project.APP=About This Application
 overview.about_this_project.TRK=About This Project
 overview.project_activity.APP=Application Activity
 overview.project_activity.TRK=Project Activity
+overview.project_activity.click_to_see=Click to see project activity
 overview.external_links=External Links
 overview.project_key.APP=Application Key
 overview.project_key.TRK=Project Key