Remove outline on button :before and :hover

Solved

Remove outline on button :before and :hover

memikee
Excursionist
25 1 7

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

 

Screenshot 2023-10-07 at 21-27-21 GoActiveShop.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10137 2405 3039

This is an accepted solution.

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;
}

 

  • And Save. 
  • Result (I change the background while editing so it visible)
  • Made4uoRibe_0-1696708508020.png
If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
10137 2405 3039

This is an accepted solution.

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;
}

 

  • And Save. 
  • Result (I change the background while editing so it visible)
  • Made4uoRibe_0-1696708508020.png
If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
memikee
Excursionist
25 1 7

Worked like a charm 🙂 Thank you!