I am trying to customize my menu and make the background white. The only problem I'm having is the default color of a menu item being hovered over is white.
I can't find anywhere to change this setting. I have tried to customize the css in a lot of different ways. It seem like this should work but no luck:
This works great when I hover over the menu item, but when I move the cursor to the drop down sub menu, it turns the original menu item back to the default white.
This rule targets any link (.ty-menu__item-link) that is a descendant of a menu item (.ty-menu__item), which is itself a descendant of the menu container (.ty-menu__items).
The :hover pseudo-class applies the style when the user hovers their mouse over the link.
The effect is to change the color of the link to red only when the mouse is directly over that specific link.
However, this rule does not maintain the red color when you move the cursor away to a submenu. Thus, the color reverts to its default (white in above case) when you move to a submenu.
This rule is slightly different. It targets the link (.ty-menu__item-link) within a menu item (.ty-menu__item) when the entire menu item is hovered over, not just the link.
The :hover pseudo-class is applied to the .ty-menu__item, meaning the styles will be applied when the mouse hovers over any part of the menu item, not just the link.
This approach solves the issue with the first rule. Now, when you hover over a menu item and then move to its submenu, the main menu item remains red because the hover state is still active on the .ty-menu__item element.
In summary, the first rule changes the link color only when the mouse is directly over the link, causing it to revert to the default color when moving to a submenu. The second rule, changes the link color when the mouse hovers over any part of the menu item, maintaining the color even when navigating to its submenu.