Why is my basket popup notification transparent?

Hey,

if i add a product into my basket the popup notification looks like it is transparent. (see picture)

i’ve already tried to put these codes in different templates:

.cart-notification-wrapper .cart-notification {background: #fdfdfd !important;}

.cart-notification-wrapper .cart-notification {background: #fdfdfd !important;}

.cart-notification__links .link.button-label, .cart-notification__links #cart-notification-button {color: rgb(var(–color-foreground)) !important;}

.cart-notification__links #cart-notification-button, .cart-notification__links #cart-notification-button:hover {border: 1px solid #ddd !important;}

but this doesn’t work for me.

anyone who can help me with this problem?

Hi @AndyG1

Can I take a look? Would you mind to share your Store URL website? with password if its protected. Thanks!

Ofcourse,

the website URL:

https://3643bf.myshopify.com/products/haarelastiek-madelief-yellow-2-stuks-blond

Password:

cheeso

Thank you for the information.

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:
div#cart-notification {
    background: white;
    z-index: 1;
}

Nice!, this actually worked for me!.

thank you so much.

I wonder if the proposed solution doesn’t work for anyone as it didn’t for me.

You might need to try this:

  • 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 “component-cart-notification” and find “.cart-notification.active” and add a line z-index: 1;

like this:

.cart-notification.active {
  transform: translateY(0);
  transition: transform var(--duration-default) ease, visibility 0s;
  visibility: visible;
  z-index: 1;
}

I hope it works for everyone.

BTW, this is my first answer on the Shopify Community. :raising_hands: