Goal: Change the hover behavior of the header search and cart icons in the Dawn theme—remove the default transform/magnifying effect and instead change the icon color on hover (matching footer social icons).
What was done:
Edit theme code: Online Store → Themes → Actions → Edit code → Assets → base.css. Add custom CSS at the bottom.
Suggested CSS variants (all target the header icon on hover):
Disable transform and dim icon: .header__icon:hover .icon { transform: none/unset !important; opacity: 0.5 !important; }
Disable transform and change color: .header__icon:hover .icon { transform: unset !important; color: red !important; }
Keep full opacity and set a specific color: .header__icon:hover .icon { opacity: 1 !important; color: #ffa500; }
Notes:
The key is overriding the hover state of .header__icon .icon to stop the default animation and apply desired color/opacity.
A screenshot was shared but not required to implement the fix.
Outcome/Status:
The provided CSS resolved the issue. Thread appears resolved with no outstanding questions.
Summarized with AI on December 14.
AI used: gpt-5.
Hi! I am trying to change the hover action for the search and shopping bag icons in my header. Currently it is the default magnifying glass action. Could someone help me remove the hover action and make it so that the fill color changes when you hover over it? I am trying to replicate the hover action from the social icons in my footer.