Skip to content

Commit 5a9633b

Browse files
committed
improve the way of applying the style class
1 parent e0b9b07 commit 5a9633b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

client/checkout/express-checkout-buttons.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
#wcpay-express-checkout-element {
2828
opacity: 1;
2929
}
30+
31+
#wcpay-express-checkout-button-separator {
32+
opacity: 1;
33+
}
3034
}
3135

3236
// WooPay button is always visible

client/express-checkout/button-ui.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ const expressCheckoutButtonUi = {
4242
},
4343

4444
showContainer: () => {
45-
const $container = jQuery( expressCheckoutElementId ).closest(
46-
'.wcpay-express-checkout-wrapper'
47-
);
48-
$container.addClass( 'is-ready' );
45+
get$Container()
46+
.closest( '.wcpay-express-checkout-wrapper' )
47+
.addClass( 'is-ready' );
4948
},
5049
};
5150

0 commit comments

Comments
 (0)