Fix for topbar color for .has-form a tags changes when hovered nearby

Fix for #3712