No matter how controversial, any personal opinion of a leader about any law doesn't create a hostile work environment unless (s)he decides to. Eich didn't have any problems accepting people at Mozilla. There were plenty of statements of LGBT(pick one) people stating that Eich treated them same as anybody else. This being said, I do think that a person of weak character would decide to create an environment hostile to people (s)he doesn't share basic beliefs with. But people with weak character don't get elected to be community leaders in general.