Skip to content

Commit

Permalink
Fix Express Checkout Element button width (#9094)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo authored Jul 15, 2024
1 parent 6f434a4 commit ed21d55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog/fix-9005-fix-ece-button-width
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Fix Express Checkout Element button width.
8 changes: 8 additions & 0 deletions client/checkout/express-checkout-buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
}
}

// This fixes width calculation issues inside the iframe for blocks and shortcode pages.
.wcpay-payment-request-wrapper,
.wc-block-components-express-payment__event-buttons {
.StripeElement iframe {
max-width: unset;
}
}

.woocommerce-checkout .wcpay-payment-request-wrapper {
margin-bottom: 1.5em;
}
Expand Down

0 comments on commit ed21d55

Please sign in to comment.