The ECJ has ruled that EU maternity laws do not apply to a woman who had a baby through a surrogate. And an employer’s refusal to grant maternity leave/pay to the woman was not unlawful disability or sex discrimination.
Source: CD v ST (C-167/12) & Z v A Government Department and the Board of Management of a Community School (C-363/12).