Skip to content

Commit

Permalink
No border for fullscreen iframe (#49)
Browse files Browse the repository at this point in the history
* No border for fullscreen

* fix dash

Co-authored-by: Steve Mask <smask@paypal.com>
  • Loading branch information
mnicpt and Steve Mask committed Apr 26, 2022
1 parent bfd22e6 commit dec4169
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/overlay/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export function getSandboxStyle({ uid } : {| uid : string |}) : string {
height: 100%;
}
#${ uid }.paypal-checkout-sandbox .paypal-checkout-sandbox-iframe-full {
border: 0;
}
@keyframes show-container {
from {
opacity: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/overlay/template.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function Overlay({ context, close, focus, event, frame, prerenderFrame, c
return (
<div id={ uid } onRender={ setupAnimations('container') } class="paypal-checkout-sandbox">
<style nonce={ nonce }>{ getSandboxStyle({ uid }) }</style>
<iframe title="PayPal Checkout Overlay" name={ `__paypal_checkout_sandbox_${ uid }__` } scrolling="no" class="paypal-checkout-sandbox-iframe">
<iframe title="PayPal Checkout Overlay" name={ `__paypal_checkout_sandbox_${ uid }__` } scrolling="no" class={ `paypal-checkout-sandbox-iframe${ fullScreen ? '-full' : '' }` }>
<html>
<body>
<div id={ uid } onClick={ focusCheckout } class={ `paypal-overlay-context-${ context } paypal-checkout-overlay` }>
Expand Down

0 comments on commit dec4169

Please sign in to comment.