Main issue: On a Shopify Dawn theme site, the mobile hamburger menu drawer turns black after scrolling, and the menu links also become black, making the menu unreadable. At the top of the page, it shows correctly (white background with black links). Images illustrate both states.
Proposed fixes:
Add custom code in theme.liquid (before ) to adjust menu colors after scroll. The exact code wasn’t shown, but a screenshot indicates it produced readable white text on the dark drawer.
Edit assets/component-menu-drawer.css and append:
.scrolle d-past-header * { color: white !important; }
This forces white text when the header is in the “scrolled past” state. A result image confirms success.
Outcome: The original poster confirms the code works perfectly and thanks the helpers.
Notes:
“Hamburger menu” refers to the collapsible mobile navigation.
Dawn is Shopify’s default theme; its header color changes on scroll, which was cascading to the menu drawer.
Status: Resolved. Action taken was adding a CSS override so menu links remain legible (white) when the drawer has a dark background after scrolling.
Summarized with AI on December 15.
AI used: gpt-5.
Hi, so basically the navigation links from my website’s hamburger menu appear the same color as the slide out background.
A while ago I made it so the website’s header would change color from transparent to black upon scrolling down and it seems that the hamburger menu slide out changes color as well when scrolling.
It goes from white with black navigation links when at the top of the page, so readable when at the tippy top of the page, but then switches to a black background and black links when scrolling down, making the whole menu unreadable.
If anyone could help me I would really appreciate it. All I want is to basically change the navigation link’s color to white when the menu is black so it’s legible, or even simpler yet just make the slide out menu be one constant legible color pattern no matter where the page has been scrolled to.
Hello @Over_Heavens
Go to online store ----> themes ----> actions ----> edit code ----> assets ---->component-menu-drawer.css
add this code at the end of the file and save.
.scrolled-past-header * {
color: white !important;
}
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.