Remove outline on button :before and :hover

Although hard to see, the “add” button has a 1px thick outline which gets bigger when you hover.

I want to remove the outline before and when hovering.

This is possible within the “buttons” setting in the dawn theme but i want this setting to remain as is.

Any help is greatly appreciated.

Shop: https://csctesrqgudqzgtx-66895675693.shopifypreview.com

1 Like

Hi @memikee

Try this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
button#quick-add-template--21182112399661__68cd86ba-c9a7-4092-91ea-3570e608b8538008987279661-submit {
    --buttons-border-width: 0px !important;
}
.button:after {
    box-shadow: none !important;
}
.button--secondary:after {
    --border-opacity: 0 !important;
}
1 Like

Worked like a charm :slightly_smiling_face: Thank you!

1 Like