A user is experiencing inconsistent button sizing on product collection cards. Products without variants display an “Add to Cart” button that appears larger than the “Choose variant” button on other products, despite applying CSS to standardize dimensions at 60% height.
Initial Problem:
CSS targeting .card-wrapper .card__content .quick-add__submit with height: 60% and min-height: 60% wasn’t working uniformly
Multiple community members requested the store URL to investigate
Solution Provided:
BSS-TekLabs identified the issue and provided a fix:
Follow-up Issue:
After implementing the solution, a new problem emerged with disabled/out-of-stock buttons displaying incorrectly. BSS-TekLabs suggested additional CSS to hide disabled buttons and remove hover effects, but the user wants the boxes visible while indicating stock status.
Status: Partially resolved - main sizing issue fixed, but refinement needed for out-of-stock product display.
Summarized with AI on November 7.
AI used: claude-sonnet-4-5-20250929.
I have made a design on where I want all the buttons to look the same. Here on the picture you can see all buttons has been small exepct for the left one. The only difference on this product is that it has no “variant” so its directly displaying the “Add to cart” instead of “Choose variant”. I have changed so both of the have the same word now.
Why doesnt down below code change the height of the left one to be the same?
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
I dont want it to have 100% height. I want it to be 60% height on all of them. I know it works if they all have 100%. But I want them all to be at 60% and not 100%.
Hello @henryb45 .
Our team is ready to help you.
Please share your website address and access password (if necessary) so that we can check and assist you.