Skip to content

Commit 30e1931

Browse files
authored
Merge pull request #1413 from vojtapolasek/comment_a11y
added a comment about not removing attributes improving a11y
2 parents 156c8b5 + 787323d commit 30e1931

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xsl/xccdf-resources/openscap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ function openRuleDetailsDialog(rule_result_id)
22
{
33
$("#detail-modal").remove();
44

5+
/*DO NOT remove the aria-hidden="false" attribute from the following lines!
6+
This attribute ensures that rule detail can be accessed by accessibility technologies such as screenreaders.*/
57
var closebutton = $('<button type="button" class="close btn btn-sm btn-default" data-dismiss="modal" aria-hidden="false" title="Close">&#x274c;</button>');
68
var modal = $('<div id="detail-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="false"><div id="detail-modal-body" class="modal-body"></div></div>');
79

0 commit comments

Comments
 (0)