Accelerated Checkout Button - Modify Height?

Solved

Accelerated Checkout Button - Modify Height?

mrseb
Shopify Partner
3 0 0

Hi. It seems like the height of the accelerated checkout button has changed its height in the last couple of months. Now it looks a bit ugly near my standard ATC button.

 

What is the best way to change the height of the accelerated checkout button so that it matches my ATC button?

 

(I don't wish to reduce the height on my ATC button, as I think it will be too skinny.)

 

Thanks!

 

Screenshot 2024-11-08 180444.jpgScreenshot 2024-11-08 180433.jpg

Accepted Solution (1)

CodeWizard
Visitor
1 1 0

This is an accepted solution.

In Custom CSS add this: (modify size and radius by your preferred size, max size supported is 55px)

 

shopify-accelerated-checkout,
shopify-accelerated-checkout-cart {
  --shopify-accelerated-checkout-button-block-size: 46px;
  --shopify-accelerated-checkout-button-border-radius: 4px;
}

New API for accelerated checkout 

 

View solution in original post

Replies 2 (2)

CodeWizard
Visitor
1 1 0

This is an accepted solution.

In Custom CSS add this: (modify size and radius by your preferred size, max size supported is 55px)

 

shopify-accelerated-checkout,
shopify-accelerated-checkout-cart {
  --shopify-accelerated-checkout-button-block-size: 46px;
  --shopify-accelerated-checkout-button-border-radius: 4px;
}

New API for accelerated checkout 

 

mrseb
Shopify Partner
3 0 0

It works! Thanks.

 

I actually saw those docs before, but the warning at the top of the CSS section made it sound like this is for the 'buy now' buttons on the new Checkout Extensibility checkout, rather than on store pages.

 

But I'm glad it works. Thanks again.