The magnitude of electrostatic forces between subatomic particles are many magnitudes larger than the magnitudes of the gravitational forces as their charges are are much larger than their masses. Therefore, gravitational force can be considered to have a negligible effect.