Skip to content

Commit dec4169

Browse files
mnicptSteve Mask
andauthored
No border for fullscreen iframe (#49)
* No border for fullscreen * fix dash Co-authored-by: Steve Mask <[email protected]>
1 parent bfd22e6 commit dec4169

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/overlay/style.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ export function getSandboxStyle({ uid } : {| uid : string |}) : string {
4444
height: 100%;
4545
}
4646
47+
#${ uid }.paypal-checkout-sandbox .paypal-checkout-sandbox-iframe-full {
48+
border: 0;
49+
}
50+
4751
@keyframes show-container {
4852
from {
4953
opacity: 0;

src/overlay/template.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export function Overlay({ context, close, focus, event, frame, prerenderFrame, c
115115
return (
116116
<div id={ uid } onRender={ setupAnimations('container') } class="paypal-checkout-sandbox">
117117
<style nonce={ nonce }>{ getSandboxStyle({ uid }) }</style>
118-
<iframe title="PayPal Checkout Overlay" name={ `__paypal_checkout_sandbox_${ uid }__` } scrolling="no" class="paypal-checkout-sandbox-iframe">
118+
<iframe title="PayPal Checkout Overlay" name={ `__paypal_checkout_sandbox_${ uid }__` } scrolling="no" class={ `paypal-checkout-sandbox-iframe${ fullScreen ? '-full' : '' }` }>
119119
<html>
120120
<body>
121121
<div id={ uid } onClick={ focusCheckout } class={ `paypal-overlay-context-${ context } paypal-checkout-overlay` }>

0 commit comments

Comments
 (0)