]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1329659 - Copy A11y tweaks from BugzillaA11yFixes.user.js
authorDylan William Hardison <dylan@hardison.net>
Wed, 11 Jan 2017 23:48:14 +0000 (18:48 -0500)
committerDylan William Hardison <dylan@hardison.net>
Wed, 11 Jan 2017 23:48:14 +0000 (18:48 -0500)
extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl
extensions/ShadowBugs/template/en/default/hook/bug/comments-aftercomments.html.tmpl
template/en/default/attachment/list.html.tmpl
template/en/default/bug/comments.html.tmpl
template/en/default/bug/edit.html.tmpl

index 66714748b3b3cc4a5ecf8063413e17e78c45a795..3788a845285c9f2f881e26b950283ad7f30e03bd 100644 (file)
@@ -14,6 +14,6 @@
       <a href="user_profile?user_id=[% who.id FILTER uri %]">
     [% END %]
   [% END %]
-  <img align="middle" src="[% who.gravatar FILTER none %]" width="32" height="32" border="0">
+  <img alt="User image" align="middle" src="[% who.gravatar FILTER none %]" width="32" height="32" border="0">
   [% "</a>" IF who.last_activity_ts %]
 [% END %]
index d8dae521ace047576e3febf2ebbc3d32930d5e3c..3b04475fb6eb76a242212e65e75c2357d350c269 100644 (file)
@@ -34,7 +34,7 @@
     [% END %]
 
     <div class="[% class_name FILTER html %]">
-      <span class="bz_comment_number">
+      <span role="heading" aria-level="2" class="bz_comment_number">
         <a href="show_bug.cgi?id=[% public_bug.bug_id FILTER none %]#c[% count %]">
           [%- comment_label FILTER html %]</a>
       </span>
index 7a8abc8e13330ac1c792110a5a92ebe6e3d254d7..bf8f898300ca92078e80458c3fe616e949c4e710 100644 (file)
@@ -55,7 +55,7 @@ function toggle_display(link) {
 <br>
 <table id="attachment_table" cellspacing="0" cellpadding="4">
   <tr id="a0">
-    <th colspan="[% show_attachment_flags ? 3 : 2 %]" align="left">
+    <th role="heading" aria-level="2" colspan="[% show_attachment_flags ? 3 : 2 %]" align="left">
       Attachments
     </th>
   </tr>
index 8effb89da3a074454c664b4ad48b810e827efda2..2f8658c9cba5ef9e552095458b16bbaf7f6274e2 100644 (file)
           </div>
         [% END %]
 
-        <span class="bz_comment_number">
+        <span role="heading" aria-level="2" class="bz_comment_number">
           <a 
              href="show_bug.cgi?id=[% bug.bug_id %]#c[% comment.count %]">
             [%- comment_label FILTER html %]</a>
index 723753ae005b298ebed2e7d8f48919c75a2e1651..2d02862925983dfa87d74c759a495224d36742f3 100644 (file)
           (<span id="alias_nonedit_display">[% bug.alias FILTER html %]</span>) 
         [% END %]
       [% END %]
-      <span id="short_desc_nonedit_display">[% bug.short_desc FILTER quoteUrls(bug) %]</span>
+      <span role="heading" aria-level="1" id="short_desc_nonedit_display">[% bug.short_desc FILTER quoteUrls(bug) %]</span>
       [% IF bug.check_can_change_field('short_desc', 0, 1) || 
             bug.check_can_change_field('alias', 0, 1)  %]
         <small class="editme">(<a href="#" id="editme_action">edit</a>)</small>