dark Overlay only for warn, success and error dialogs... #716
-
I am wondering that the dark background overlay is available to warn, error and success dialogs only. For custom and confirm dialogs no dark overlay is shown. Is that by design? Example warn dialog from demo site: Example confirm dialog from demo site: Is there anything i can do to have the background overlay for confirm dialogs too? Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, this is be design. It is because you can't dismiss the confirmation by clicking outside of it. You're supposed to give an answer in the confirmation and custom examples. This behavior is controlled by the |
Beta Was this translation helpful? Give feedback.
Yes, this is be design. It is because you can't dismiss the confirmation by clicking outside of it. You're supposed to give an answer in the confirmation and custom examples.
This behavior is controlled by the
Modal
parameter (in theDialogParameters
). For aMessageBox
theDialogService
evaluates if theSecondaryAction
is null or empty. If it isModal
is true (==dark background). If it is notModal
is false (== light background) => you are supposed to take action by clicking one of the buttons. As alwau=ys you can still dismiss the dialog by pressing 'ESC' key.