At idle the alternator is not putting out enough current to overcome the current draw. normally a good fully charged battery masks this. Once off idle this symptom should disappear.It also might pay to check alternator output, battery condition and wiring connections, bad connections can also be a cause.
Regards Martin.