Dismissible modals can be dismissed by clicking outside of the modal content or by
pressing the Escape key. This behavior can be enabled by setting
dismissible parameter to true.
When dismissible flag is disabled, the modal can only be closed by clicking on a close-handle inside the modal. Rendering non-dismissible modal without close-handle may lock user out from further interactions with the page.
Using dismissible flag is recommended for accessibility
reasons, as it allows users to easily close the modal without having to
navigate to a specific close button. However, there may be cases where a
non-dismissible modal is necessary, such as when the modal contains
critical information that must be acknowledged before proceeding. In such
cases, it's important to provide clear instructions on how to close the
modal and ensure that it can be closed using keyboard navigation for
accessibility purposes.
dismissible flag is recommended for implementation, but some
themes may choose to ignore it and always render modals as dismissible.