Issue Bug Closed

#86993Nested modals do not block previous modal

Armin Vieweg 11/25/18, 03:04 updated 03/27/25, 21:43

Description

With small CSS improvement in global backend CSS file, you can fix this.

*Before:*
before.png

*After:*
after.png

CSS Fix:

.modal-backdrop {
    z-index: 5000;
}

It works for an unlimited amount of levels. The trick is to set the modal-backdrop z-index equal to the modal z-index. The rest happens by the order of backdrop and modal in DOM.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 2

History 3

  1. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-05-27T15:26:53+00:00" > 05/27/24, 15:26 </span>

    My 2 cents: “Modal above modal” pattern should be avoided… are there places in the TYPO3 Core where it happens?

  2. Georg Ringer commented <span data-processor="relativetime" data-value="2025-03-27T21:43:15+00:00" > 03/27/25, 21:43 </span>

    as this issue is quite old, I am closing this. additionally there is now https://docs.typo3.org/permalink/t3coreapi:confval-modules-modals-settings-staticbackdrop which helps to avoid such glitches