Add googlepay and apm css classes to button wrapper

This commit is contained in:
Emili Castells Guasch 2024-07-17 15:23:10 +02:00
parent 40805c1a13
commit 39ffbaa6e7

View file

@ -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`;