Skip to content

Commit ec0f939

Browse files
Copilotrenemadsen
andcommitted
Fix Angular 21 CDK overlay structure with nested backdrop
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent 0fbca24 commit ec0f939

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

eform-client/src/scss/styles.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,11 +1547,17 @@ app-footer {
15471547
align-items: center !important;
15481548
}
15491549

1550+
// Angular 21 specific: handle the new cdk-overlay-popover wrapper
1551+
.cdk-overlay-popover.cdk-global-overlay-wrapper {
1552+
position: fixed !important;
1553+
inset: 0 !important;
1554+
}
1555+
15501556
.cdk-overlay-pane {
15511557
position: relative !important;
15521558
pointer-events: auto !important;
15531559
box-sizing: border-box !important;
1554-
z-index: 1000 !important;
1560+
z-index: 1001 !important;
15551561
display: flex !important;
15561562
max-width: 100vw !important;
15571563
max-height: 100vh !important;
@@ -1570,6 +1576,12 @@ app-footer {
15701576
opacity: 1 !important;
15711577
}
15721578

1579+
// Angular 21: When backdrop is inside the wrapper, ensure it's positioned correctly
1580+
.cdk-overlay-popover .cdk-overlay-backdrop {
1581+
position: fixed !important;
1582+
inset: 0 !important;
1583+
}
1584+
15731585
.mat-mdc-dialog-container {
15741586
display: flex !important;
15751587
flex-direction: column !important;

0 commit comments

Comments
 (0)