Updates the contextual classes color and the cross hover.