Different Pay for Men on Shared Parental Leave

Many employers consider enhanced payments for employees taking maternity leave to bridge what can be significant gaps between Statutory Maternity Pay but is it legal to not trickle this down to male employees sharing child care responsibilities by taking shared parental leave?