Skip to content

fix: isolate MDL detail stacking context from ancestor overlays - #11764

Merged
web-padawan merged 1 commit into
mainfrom
fix/mdl-isolation
May 18, 2026
Merged

fix: isolate MDL detail stacking context from ancestor overlays#11764
web-padawan merged 1 commit into
mainfrom
fix/mdl-isolation

Conversation

@web-padawan

Copy link
Copy Markdown
Member

When vaadin-master-detail-layout is nested inside vaadin-app-layout and both are in overlay mode, the MDL detail panel renders above the app-layout's drawer backdrop. The backdrop becomes click-through behind the detail panel, so users cannot dismiss the drawer by clicking the visible part of it.

The root cause is a stacking conflict: MDL's #detail uses z-index: 4 for its own internal layering (above its placeholder, backdrop, and outgoing-detail wrapper), and that z-index applies in the nearest ancestor stacking context — the app-layout's stacking context, where the drawer backdrop sits at z-index: 2.

Applying isolation: isolate on the MDL host contains the internal z-indices in MDL's own stacking context. MDL as a whole then stacks at its default level in the parent, and ancestor overlays (app-layout backdrop, dialogs, etc.) layer above it as expected. The overlay-containment='page' mode is excluded — there, the detail uses position: fixed and must escape MDL's stacking context to layer above the page.

Fixes #11762


🤖 Generated with Claude Code

Use `isolation: isolate` so MDL's internal z-indices (#detail at z-4
in particular) stay contained within MDL's own stacking context.
Without it, the detail panel competes with ancestor overlays such as
`vaadin-app-layout`'s backdrop (z-2) and renders above them.

Fixes #11762
@web-padawan
web-padawan requested a review from vursen May 18, 2026 08:20
@sonarqubecloud

Copy link
Copy Markdown

@web-padawan
web-padawan merged commit 7ee4165 into main May 18, 2026
10 checks passed
@web-padawan
web-padawan deleted the fix/mdl-isolation branch May 18, 2026 08:24
@vaadin-bot

Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 25.2.0-alpha8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[app-layout] Backdrop covered by nested MDL detail panel in overlay mode

3 participants