Skip to content

Commit

Permalink
chore: rename wrapper from payment-request to ECE (#9731)
Browse files Browse the repository at this point in the history
  • Loading branch information
frosso authored Nov 15, 2024
1 parent f358e9d commit 0df81cc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

chore: rename wrapper from payment-request to express-checkout
4 changes: 2 additions & 2 deletions client/checkout/express-checkout-buttons.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.wcpay-payment-request-wrapper {
.wcpay-express-checkout-wrapper {
margin-top: 1em;
width: 100%;
clear: both;
Expand All @@ -21,7 +21,7 @@
}

// This fixes width calculation issues inside the iframe for blocks and shortcode pages.
.wcpay-payment-request-wrapper,
.wcpay-express-checkout-wrapper,
.wc-block-components-express-payment__event-buttons {
.StripeElement iframe {
max-width: unset;
Expand Down
2 changes: 1 addition & 1 deletion client/tokenized-payment-request/button-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const paymentRequestButtonUi = {

getElements: () => {
return jQuery(
'.wcpay-payment-request-wrapper,#wcpay-express-checkout-button-separator'
'.wcpay-express-checkout-wrapper,#wcpay-express-checkout-button-separator'
);
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function display_express_checkout_buttons() {
$separator_starts_hidden = ! $should_show_woopay;
if ( $should_show_woopay || $should_show_express_checkout_button ) {
?>
<div class='wcpay-payment-request-wrapper' >
<div class='wcpay-express-checkout-wrapper' >
<?php
if ( ! $this->express_checkout_helper->is_pay_for_order_page() || $this->is_pay_for_order_flow_supported() ) {
$this->platform_checkout_button_handler->display_woopay_button_html();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function test_display_express_checkout_buttons_all_disabled() {
ob_start();
$this->express_checkout_button_display_handler->display_express_checkout_buttons();

$this->assertStringNotContainsString( 'wcpay-payment-request-wrapper', ob_get_contents() );
$this->assertStringNotContainsString( 'wcpay-express-checkout-wrapper', ob_get_contents() );
ob_end_clean();
}

Expand Down

0 comments on commit 0df81cc

Please sign in to comment.