Fix class for focused legend
Change focus/defocus logic to use css class - #530