Main issue: On a Dawn theme product page, the “Add to Cart” button’s design shifts when clicked or when a variant changes, and size option tags display in uneven sizes. Screenshots show the desired vs. undesired button state; a product URL is provided.
Proposed fix (button): Add CSS to hide span.svg-wrapper.add-to-cart-icon in theme.liquid. Outcome: this hid elements in the button (cart icon/text), which is not desired; the button should retain its icon and consistent styling.
Proposed fix (variant sizes): Remove custom CSS that targets a specific label ID so all size tags render uniformly. The referenced selector is label[for=“template–26410928243036__main-1-0”]. The original poster couldn’t find where it was added; another reply suggested placing that CSS in base.css (the main stylesheet), which conflicts with the earlier advice to remove it.
Technical notes: CSS (Cascading Style Sheets) controls styling; theme.liquid is the layout file; base.css is the global stylesheet.
Status: Unresolved. Needs a CSS approach that prevents the button’s layout shift while keeping the cart icon, and clarity on removing (not adding) the label-specific CSS to standardize size tags.
Summarized with AI on December 11.
AI used: gpt-5.
I need some help. When I click the “Add to Cart” button or change the variant, the Add to Cart button changes and its internal design shifts. How can I prevent this so the button always keeps the same design?
Also, I noticed that the size tags appear uneven, and I want them all to be the same size as the size XS example.
Hey, thank you for your help. This only hid the add to cart text, but the icon that has the button inside is missing + the variant size tags are still in 2 different sizes.
For the variants size tags that are in two different sizes, you just need to remove the code which you added in Main Product Information custom css. Below is the code, just simply remove this and your variants will be the same size.
label[for="template--26410928243036__main-1-0"] {
font-size: 12px !important;
padding: 10px 12px !important;
min-width: auto !important;
height: auto !important;
line-height: 1 !important;
}