Bug 25166: (follow-up) Update icons generated in JS
This patch adds aria attributes to Font Awesome icons generated by JavaScript. The icons won't appear under normal circumstances because the code for displaying the modal dialog should replace the icons with a text label. The icons are a fallback. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
7761051a83
commit
cb390a35d6
|
|
@ -65,8 +65,8 @@ function confirmModal(message, title, yes_label, no_label, callback) {
|
|||
</div>\
|
||||
<div class="modal-body"><p></p></div>\
|
||||
<div class="modal-footer">\
|
||||
<a href="#" id="bootstrap-confirm-box-modal-submit" class="btn btn-danger"><i class="fa fa-check"></i></a>\
|
||||
<a href="#" id="bootstrap-confirm-box-modal-cancel" data-dismiss="modal" class="btn btn-default"><i class="fa fa-remove"></i></a>\
|
||||
<a href="#" id="bootstrap-confirm-box-modal-submit" class="btn btn-danger"><i class="fa fa-check" aria-hidden="true"></i></a>\
|
||||
<a href="#" id="bootstrap-confirm-box-modal-cancel" data-dismiss="modal" class="btn btn-default"><i class="fa fa-remove" aria-hidden="true"></i></a>\
|
||||
</div>\
|
||||
</div>\
|
||||
</div>\
|
||||
|
|
@ -86,4 +86,4 @@ function confirmModal(message, title, yes_label, no_label, callback) {
|
|||
$("#bootstrap-confirm-box-modal-submit").text( yes_label || 'Confirm' );
|
||||
$("#bootstrap-confirm-box-modal-cancel").text( no_label || 'Cancel' );
|
||||
$("#bootstrap-confirm-box-modal").modal('show');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue