feat: add overlayParentActions() for stacked action modals
#19169
+79
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
overlayParentActions()method on child actions that keeps the parent modal visible when the child opens on topz-50(above parent'sz-40) and lightens the child backdrop to avoid double-darknessSupersedes #19163. Resolves #19166.
Usage
Changes
HasParentActions.php$shouldOverlayParentActionsproperty,overlayParentActions()setter,shouldOverlayParentActions()getterInteractsWithActions.phpsyncActionModals()dispatchesoverlayParentActionsflag from mounted actionmodals.jscloseModal()only when flag istrueAND nesting depth is increasingmodal.cssz-50stacking + lighter child backdrop for sibling.fi-modal-openelements02-modals.mdTest plan
->overlayParentActions()→ confirmation dialog stacks on top, slide-over stays visible->overlayParentActions()→ default close/reopen behavior unchangedcomposer test:phpstanpasses (pre-existing env issue on local, CI should be clean)