I moved the help button to be inside of the legend (https://github.com/dimagi/Vellum/blob/fix-help/templates/main.html#L366) and therefore added an extra direct-child to keep the same on hover behavior.