]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 655408: add "non-visual but accessible to screen-readers" marker to non-public...
authorbyron jones <byron@glob.com.au>
Fri, 18 Oct 2019 20:18:01 +0000 (04:18 +0800)
committerdklawren <dklawren@users.noreply.github.com>
Fri, 18 Oct 2019 20:18:01 +0000 (16:18 -0400)
extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
extensions/BugModal/web/bug_modal.css

index ee6373281b0033b33eeb251c078f3af95e8692ab..6e45d7f3bea99d7defd0ac23c15ac5c344a85786 100644 (file)
         no_label = 1
         hide_on_edit = 1
     %]
+      [%# non-public bug text for screen readers %]
+      [% IF bug.groups_in.size %]
+        [%
+          non_public_desc = "Confidential";
+          FOREACH group IN bug.groups_in;
+            IF group.secure_mail;
+              non_public_desc = "Security";
+              BREAK;
+            END;
+          END;
+        %]
+        <h1 class="offscreen">[% non_public_desc FILTER none %] [%+ terms.bug %]</h1>
+      [% END %]
+
       <h1 id="field-value-short_desc">[% bug.short_desc FILTER quoteUrls(bug) FILTER wbr %]</h1>
     [% END %]
 
index ef028719faedc234ff36dd2a84e372fdf3466e36..1da42513c04d7fdeb56cb5f4aa53115d8c121be0 100644 (file)
   vertical-align: middle !important;
 }
 
+.offscreen {
+  position: absolute;
+  left: -10000px;
+  top: auto;
+  width: 1px;
+  height: 1px;
+  overflow: hidden;
+}
+
 .gravatar {
   margin-right: 4px;
   border-radius: 4px;