File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 10
10
height : 40px ;
11
11
background : no-repeat
12
12
url ( '../../client/payment-method-icons/link/icon.svg' );
13
- background-color : none ;
13
+ background-color : transparent !important ;
14
14
cursor : pointer;
15
15
border : none;
16
16
}
Original file line number Diff line number Diff line change @@ -4,19 +4,22 @@ const showLinkButton = ( linkAutofill ) => {
4
4
const linkButtonTop =
5
5
jQuery ( '#billing_email' ) . position ( ) . top +
6
6
( jQuery ( '#billing_email' ) . outerHeight ( ) - 40 ) / 2 ;
7
- jQuery ( '.wcpay -stripelink-modal-trigger' ) . show ( ) ;
8
- jQuery ( '.wcpay -stripelink-modal-trigger' ) . css (
7
+ jQuery ( '.stripe-gateway -stripelink-modal-trigger' ) . show ( ) ;
8
+ jQuery ( '.stripe-gateway -stripelink-modal-trigger' ) . css (
9
9
'top' ,
10
10
linkButtonTop + 'px'
11
11
) ;
12
12
}
13
13
14
14
// Handle StripeLink button click.
15
- jQuery ( '.wcpay-stripelink-modal-trigger' ) . on ( 'click' , ( event ) => {
16
- event . preventDefault ( ) ;
17
- // Trigger modal.
18
- linkAutofill . launch ( { email : jQuery ( '#billing_email' ) . val ( ) } ) ;
19
- } ) ;
15
+ jQuery ( '.stripe-gateway-stripelink-modal-trigger' ) . on (
16
+ 'click' ,
17
+ ( event ) => {
18
+ event . preventDefault ( ) ;
19
+ // Trigger modal.
20
+ linkAutofill . launch ( { email : jQuery ( '#billing_email' ) . val ( ) } ) ;
21
+ }
22
+ ) ;
20
23
} ;
21
24
22
25
const enableStripeLinkPaymentMethod = ( options ) => {
You can’t perform that action at this time.
0 commit comments