Skip to content

Commit

Permalink
MWPW-144575: Modal-Iframe for apps-whats-included is broken for Deskt…
Browse files Browse the repository at this point in the history
…op resolutions (#2016)

fixed CSS selector commerce-frame section and fragment
  • Loading branch information
mirafedas authored Mar 15, 2024
1 parent 56bbeb1 commit 52bb962
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions libs/blocks/merch/merch.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ a[is='checkout-link'] > span {
}

#checkout-link-modal iframe {
height: 100%;
flex: 1;
}

Expand Down
6 changes: 4 additions & 2 deletions libs/blocks/modal/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@
}

.dialog-modal.commerce-frame > .fragment,
.dialog-modal.commerce-frame > .section {
.dialog-modal.commerce-frame > .section,
.dialog-modal.commerce-frame > .fragment > .section {
height: 100vh;
}
}
Expand All @@ -221,7 +222,8 @@
}

.dialog-modal.commerce-frame > .fragment,
.dialog-modal.commerce-frame > .section {
.dialog-modal.commerce-frame > .section,
.dialog-modal.commerce-frame > .fragment > .section {
height: 100%;
}

Expand Down
2 changes: 1 addition & 1 deletion libs/blocks/modal/modal.merch.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function adjustStyles({ dialog, iframe }) {
if (isAutoHeightAdjustment) {
dialog.classList.add('height-fit-content');
} else {
iframe.style.height = '100vh';
iframe.style.height = '100%';
}
}

Expand Down

0 comments on commit 52bb962

Please sign in to comment.