Affiche les messages Drupal par-dessus les fenêtres modales
La région [data-drupal-messages] vit dans le layout Gin, où des stacking contexts ancêtres neutralisaient son position:fixed + z-index : tout le sous-arbre passait sous l'overlay de la modale jQuery UI (enfant direct du <body>), rendant illisibles les messages insérés pendant l'édition d'une ligne (MessageCommand -- erreur de répartition, création...). admin-chrome.js déplace la région en enfant direct du <body> au chargement et la re-vérifie dès qu'une modale entre dans le DOM ; admin-chrome.css passe son z-index à 100000, hors d'atteinte du _moveToTop de jQuery UI (qui ne remonte un dialog que au-dessus des siblings .ui-front, ce que la région n'est pas).
This commit is contained in:
@@ -69,7 +69,14 @@ html.gin--dark-mode .figli-page-nav a.is-active {
|
||||
([data-drupal-messages-fallback], used when Drupal.Message.add() -- our
|
||||
own MessageCommand-driven AJAX messages included -- has no region to
|
||||
attach to). Auto-dismiss timing for non-error messages is handled in
|
||||
admin-chrome.js. */
|
||||
admin-chrome.js.
|
||||
z-index 100000: the region is lifted to a direct <body> child by
|
||||
admin-chrome.js (Gin's layout stacking contexts would otherwise bury
|
||||
it under the modal overlay), and 100000 puts it above the jQuery UI
|
||||
dialog itself (~100, .ui-front) and its overlay (dialog - 1) -- and
|
||||
unreachable: jQuery UI only ever raises a dialog above .ui-front
|
||||
siblings (_moveToTop), which the messages wrapper is not. Messages
|
||||
stay readable on top of everything while a modal is open. */
|
||||
[data-drupal-messages],
|
||||
[data-drupal-messages-fallback] {
|
||||
position: fixed !important;
|
||||
@@ -78,7 +85,7 @@ html.gin--dark-mode .figli-page-nav a.is-active {
|
||||
left: auto !important;
|
||||
width: auto;
|
||||
max-width: 22rem;
|
||||
z-index: 1000;
|
||||
z-index: 100000;
|
||||
}
|
||||
[data-drupal-messages] .messages-list__wrapper,
|
||||
[data-drupal-messages] .messages__wrapper,
|
||||
|
||||
Reference in New Issue
Block a user