Skip to content

Commit

Permalink
INTER-3958: Format ppcp express pay buttons to match other express pa…
Browse files Browse the repository at this point in the history
…y buttons in templates
  • Loading branch information
kfalkowski11 committed Jun 4, 2024
1 parent 6da12f2 commit 516e9e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/paypal/ppcp_apple/createPPCPApple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function createPPCPApple(): void {
// creating a paypal-apple payment div inside express payment container
const ppcpAppleDiv = document.createElement('div');
ppcpAppleDiv.id = 'ppcp-apple-express-payment';
ppcpAppleDiv.className = 'ppcp-apple-express-payment';
ppcpAppleDiv.className = 'ppcp-apple-express-payment express-payment';
ppcpAppleDiv.dataset.testid = 'ppcp-apple-express-payment';

const button = document.createElement('button');
Expand Down
2 changes: 2 additions & 0 deletions src/paypal/ppcp_buttons/ppcpOnLoad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ export async function ppcpOnLoad(payment: IExpressPayPaypalCommercePlatformButto
const paypalButtonDivId = 'ppcp-paypal-express-payment-button';
paypalButtonDiv.id = paypalButtonDivId;
paypalButtonDiv.dataset.testid = paypalButtonDivId;
paypalButtonDiv.className = 'express-payment';

const payLaterButtonDiv = document.createElement('div');
const payLaterButtonDivId = 'ppcp-paylater-express-payment-button';
payLaterButtonDiv.id = payLaterButtonDivId;
payLaterButtonDiv.dataset.testid = payLaterButtonDivId;
payLaterButtonDiv.className = 'express-payment';

// creating a paypal payment div inside express payment container
const paypalDiv = document.createElement('div');
Expand Down
1 change: 1 addition & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

.ppcp-express-payment{
width: auto;
display: contents;
}

.ppcp-apple-pay-button{
Expand Down

0 comments on commit 516e9e0

Please sign in to comment.