Making a menu colour background causing issues

Topic summary

Core issue: After adding custom CSS in Dawn (Shopify theme) to give the header menu a background color (#1a505b), the announcement bar and login/cart icons disappeared, and the requester wants the menu background height reduced.

What was changed: Custom rules added in assets/base.css targeting ul.list-menu.list-menu–inline and specific HeaderMenu lists, plus font-size and padding tweaks. These likely affect header layout/visibility.

Current status: Desktop header now looks as intended. New problem on mobile: the menu remains expanded and won’t collapse under the hamburger (three-line) icon.

Context shared: Store URL provided (3dcaststore.com.au). Helper requested URL and password if the store is protected. Screenshots of code and mobile behavior were attached and are relevant to understanding the layout issue.

Open questions/next steps:

  • Need inspection of the live theme (and password if applicable) to diagnose why mobile navigation isn’t collapsing and why header icons/announcement bar were hidden.
  • No confirmed fix yet; discussion remains open.
Summarized with AI on December 13. AI used: gpt-5.

I have 2 questions that i need help with. I’m wanting to add a colour background to the menu. I’m using the code below in with the dawn theme in the assets/base.css It works however I would like to make the colour box height a bit smaller and when I do insert this code I can no longer see the announcement bar, login icon and cart icon. How can i fix all this, Thanks

ul.list-menu.list-menu–inline {
background-color: #1a505b;
}

li > a#HeaderMenu-home {color: white;}

span.header__active-menu-item {
font-weight: bold;
color: white;
}

span {
font-weight: bold;
color: white;
}

ul#HeaderMenu-MenuList-2 {background-color: #1a505b;}

ul#HeaderMenu-MenuList-5 {
background-color: #1a505b;
}

ul#HeaderMenu-MenuList-5 > a {
color: white;
}

ul#HeaderMenu-MenuList-5 > li > a {
color: white;
}

svg.icon.icon-caret {
color: white;
}

details[open]>.header__menu-item{
text-decoration-color: white;
}

h1.header__heading {

padding-left: 1.5em !important;

}

.header__icons.header__icons–localization.header-localization {

padding-right: 5em !important;

}

@media screen and (min-width: 990px){
.header–top-center .header__inline-menu {
justify-self: unset !important;
}
nav.header__inline-menu {
max-width: 100%;
display: flex;
}
ul.list-menu.list-menu–inline {
flex-grow: 1;
}

summary.header__menu-item.list-menu__item.link.focus-inset {
font-size: 22px !important;
}
a.header__menu-item.header__menu-item.list-menu__item.link.link–text.focus-inset {
font-size: 22px !important;
}

@media (max-width: 767px){

header.header.header–top-center.header–mobile-center.page-width.header–has-menu.header–has-social {

padding-left: 5px !important;

padding-right: 0px !important;

}

.header__icon–search span {

margin-left: 26px !important;

}}

Hi @3D-Cast

Can you please share you story URL and Password if its password protected so we can check and help you out

Hi

I’ve got it the menu bar to work the way I would like for the desktop but now i’m having an issue with the mobile site. The menu constantly sticks out and wont hide behind the 3 line bar icon. Please see attached photos. Ive also added the code I have inserted for the menu bar

site is 3dcaststore.com.au

Hi @3D-Cast

Can you please share you story URL and Password if its password protected so we can check and help you out

3dcaststore.com.au, thanks