Skip to content
Snippets Groups Projects
Commit 3ba50c3a authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[FEATURE] Allow static backdrops for modals

The Modal API is now able to render a static backdrop to avoid closing
the modal when clicking it which may come in handy in case closing the
modal would result in a negative user experience, e.g. in the image
cropper.

The new boolean configuration option `staticBackdrop` controls whether
a static backdrop should be rendered or not, defaulting to `false`.

The trigger class "t3js-modal-trigger" also supports the new option
by setting corresponding data attribute.

Resolves: #99092
Releases: main
Change-Id: I0e1c7753944b41d5266aa6232d1fa838752f95b3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76605


Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent da79ff95
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment