How to Remove Persistent Hover State (Grey Background) After Clicking a Menu Item in Dawn Theme

Hello!

I’m using the Dawn theme for my Shopify store, carcleansweden.se, and I’ve noticed an issue with the menu.

When I click or tap on a menu item (mobile), the hover effect (grey background) remains visible even after releasing the finger or clicking elsewhere:

Is there a way to remove this persistent hover effect so the grey background disappears immediately after the interaction?

Any help would be appreciated!

Thank you!

Hi @CarCleanCC

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. 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:
.menu-drawer__menu-item--active, .menu-drawer__menu-item:focus, 
.menu-drawer__close-button:focus, .menu-drawer__menu-item:hover, .menu-drawer__close-button:hover {
    background: none !important;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!