]> source.dussan.org Git - sonarqube.git/commitdiff
Add aria labels to issue rule and filter buttons in issue list. This is required...
authorU-DESKTOP-GN2POE0\jared <jared.stofflet@gmail.com>
Fri, 30 Dec 2016 03:36:32 +0000 (22:36 -0500)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 2 Feb 2017 14:48:32 +0000 (15:48 +0100)
text describing what they do so are announced as "button" when using Jaws screen reading software.

server/sonar-web/src/main/js/apps/issues/templates/issues-issue-filter.hbs
server/sonar-web/src/main/js/components/issue/templates/issue.hbs
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index f7f1bd1b215b1df0e14d1d8ed6d28aa12aa93f1c..16a212ddd60d7c1998ddfa203e8d716adec74d21 100644 (file)
@@ -1,5 +1,6 @@
 <li class="issue-meta">
-  <button class="button-link issue-action issue-action-with-options js-issue-filter">
+  <button class="button-link issue-action issue-action-with-options js-issue-filter"
+          aria-label="{{t "issue.filter_similar_issues"}}">
     <i class="icon-filter icon-half-transparent"></i>&nbsp;<i class="icon-dropdown"></i>
   </button>
 </li>
index 3f4975d1f2782c8c0c2a76c8e3d80ff34271aa18..a828ecf5e3eb049e9be845bbbfc0d125a412aa9c 100644 (file)
@@ -5,7 +5,8 @@
       <td>
         <div class="issue-message">
           {{message}}&nbsp;
-          <button class="button-link js-issue-rule issue-rule icon-ellipsis-h"></button>
+          <button class="button-link js-issue-rule issue-rule icon-ellipsis-h"
+                  aria-label="{{t 'issue.rule_details'}}"></button>
         </div>
       </td>
 
index d3b386694dacbd442dc41e73a12090f361d17ffa..965682207f934f3846a9389788f15e1f533e7d22 100644 (file)
@@ -601,6 +601,7 @@ issue.comment.delete_confirm_title=Delete Comment
 issue.comment.delete_confirm_message=Do you want to delete this comment?
 issue.comment.delete_confirm_button=Delete
 issue.details=Details
+issue.rule_details=Rule Details
 issue.send_notifications=Send Notifications
 issue.transition=Transition
 issue.transition.confirm=Confirm