Open slugbucket opened 4 years ago
Based on https://www.w3schools.com/howto/howto_css_modals.asp add a form element
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
with appropriate styling,
/* Modal Footer */
.modal-footer {
padding: 2px 16px;
background-color: #5cb85c;
color: white;
}
The suggested approach doesn't work as expected and doesn't really add anything to the overall look so it's debatable whether it is actually worth implementing this.
Add a close button to the modal dialog on the solutions form similar to what is shown at https://www.w3schools.com/Bootstrap/bootstrap_ref_js_modal.asp. Note that the ESC key doesn't work to exit the dialog.