Skip to content

Commit fa5dc4a

Browse files
Copilotrenemadsen
andcommitted
Fix popover top layer blocking dropdowns by using maximum z-index
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent ec0f939 commit fa5dc4a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

eform-client/src/scss/styles.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,26 @@ app-footer {
15331533
z-index: 10000 !important;
15341534
}
15351535

1536+
// Angular 21: Fix popover top layer blocking dropdowns
1537+
// The popover attribute places modal in browser's "top layer" which blocks dropdowns
1538+
// We need to ensure dropdowns also render in or above the top layer
1539+
[popover] .ng-dropdown-panel,
1540+
.cdk-overlay-popover .ng-dropdown-panel {
1541+
z-index: 2147483647 !important; // Max z-index value to appear above popover top layer
1542+
}
1543+
1544+
// Ensure the overlay container itself can contain high z-index elements
1545+
.cdk-overlay-container {
1546+
z-index: 2147483647 !important;
1547+
position: fixed !important;
1548+
pointer-events: none !important;
1549+
}
1550+
1551+
// Allow interaction with elements inside the overlay container
1552+
.cdk-overlay-container > * {
1553+
pointer-events: auto !important;
1554+
}
1555+
15361556
// Fix Angular 21 dialog/modal positioning and backdrop
15371557
.cdk-global-overlay-wrapper {
15381558
display: flex !important;

0 commit comments

Comments
 (0)