From: byron jones Date: Fri, 18 Oct 2019 20:18:01 +0000 (+0800) Subject: Bug 655408: add "non-visual but accessible to screen-readers" marker to non-public... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5756cb098b8970ef5ceec120a5ff95f73c31c644;p=thirdparty%2Fbugzilla.git Bug 655408: add "non-visual but accessible to screen-readers" marker to non-public bugs --- diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index ee6373281..6e45d7f3b 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -290,6 +290,20 @@ 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; + %] +

[% non_public_desc FILTER none %] [%+ terms.bug %]

+ [% END %] +

[% bug.short_desc FILTER quoteUrls(bug) FILTER wbr %]

[% END %] diff --git a/extensions/BugModal/web/bug_modal.css b/extensions/BugModal/web/bug_modal.css index ef028719f..1da42513c 100644 --- a/extensions/BugModal/web/bug_modal.css +++ b/extensions/BugModal/web/bug_modal.css @@ -28,6 +28,15 @@ vertical-align: middle !important; } +.offscreen { + position: absolute; + left: -10000px; + top: auto; + width: 1px; + height: 1px; + overflow: hidden; +} + .gravatar { margin-right: 4px; border-radius: 4px;