Skip to content
Snippets Groups Projects
Commit e8d70bd1 authored by Fabien Clément's avatar Fabien Clément Committed by Florent Torregrosa
Browse files

Issue #3513925 by goz: Multiple modals stay on top of backdrops

parent 04a81363
Branches
Tags
1 merge request!279Issue #3513925: Multiple modals stay on top of backdrops
Pipeline #452432 passed
.modal-footer .ui-dialog-buttonset {
gap: var(--bs-modal-footer-gap);
}
.modal {
--bs-modal-zindex: 1050;
}
......@@ -225,6 +225,11 @@
if ($element.modal !== undefined) {
$element.modal(settings);
$element.modal('show');
// Be sure modal is last, it will be on top of all other modals and
// backdrops.
// Thanks to that, no more need different z-index for modals and
// backdrops.
$element.appendTo('body');
}
if (settings.width) {
......
......@@ -50,12 +50,13 @@ drupal.dialog:
js:
assets/js/misc/dialog/dialog.js: {}
css:
component:
theme:
assets/css/component/dialog.css: {}
dependencies:
- core/jquery
- core/drupal
- core/drupalSettings
- ui_suite_bootstrap/bootstrap
drupal.dialog.ajax:
js:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment