I am sorry. I did not realize the person who asks the question is on a student visa -- I assumed she is a citizen or resident.
I would have answered the question differently. Yes, the federal law regulates maternity leave of F1's. It preempts the state laws.