mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add googlepay and apm css classes to button wrapper
This commit is contained in:
parent
40805c1a13
commit
39ffbaa6e7
1 changed files with 5 additions and 1 deletions
|
@ -74,7 +74,11 @@ class GooglepayButton {
|
|||
const { ppcpStyle, buttonStyle } =
|
||||
this.contextConfig();
|
||||
|
||||
wrapper.className = `ppcp-button-${ ppcpStyle.shape }`;
|
||||
wrapper.classList.add(
|
||||
`ppcp-button-${ ppcpStyle.shape }`,
|
||||
'ppcp-button-apm',
|
||||
'ppcp-button-googlepay'
|
||||
);
|
||||
|
||||
if ( ppcpStyle.height ) {
|
||||
wrapper.style.height = `${ ppcpStyle.height }px`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue