The general recommendation is to do only highlights so there's no chance of the dye entering your blood stream and to keep the baby out of the room while you're doing it. I've dyed my hair twice while breastfeeding. Heck, one time my daughter needed to nurse in the middle of a dye, but do check with your baby's pediatrician.
I've heard so many things, maybe check with your doctor.