A little riddle.

I hide in plain sight and shift between what’s black and what’s white.

I give you a reason to fight, yet  I will make you question why.

I close at the open and open at the close what am I?