Goal: Remove underline (text-decoration) from Dawn theme navbar when a submenu item is hovered and when a parent section (or any of its subsections) is active.
Context: The underline was already removed on main links, but persisted on dropdown sublinks and on active states. A store preview link and a screenshot were shared for reference.
Proposed fixes:
Add custom CSS in theme.liquid (before ) to target submenu hover and active states and remove text-decoration.
Alternative: Add CSS in base.css using selectors like summary.list-menu__item a and details[open] > .header__menu-item, initially suggested with !important.
Outcome: The first CSS approach resolved both issues. The author confirmed it works and that !important was not necessary.
Status: Resolved. No further action needed. The alternative base.css solution remains a valid option if needed.
Summarized with AI on December 28.
AI used: gpt-5.
Hello,
I’m trying to customize the navbar in Dawn theme a bit with some CSS and I’m currently facing 2 problems.
I managed to customize the hover and active section of the standard links, but I have issues to do the same on the links with dropdown, as can be seen on screenshot below.
1st problem: I wanna get rid of the text-decoration when the section or any of the subsections is active.
2nd problem: i wanna get rid of the text-decoration when you hover over any of the subsection item (I managed to get rid of the text-decoration when you hover directly over the main link, but when hovering the sublinks it still creates the underscore)