Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTER-3958: Format ppcp express pay buttons to match other express pay buttons in templates #34

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading