Thank You - when you say illegal is this under federal law or state law? I'm actually in NSW.
Pre-Mat role was still 38 hours a week - but was flexible in the sense that I only needed to work 9-5 Monday to Friday - it was a desk job. I didn't have to answer my phone at 3am if there was an issue, I didn't have to go in on weekends if there was a problem.
However role that I was now offered when the pre-mat job was no longer available was a support role - were longer hours, I had to be prepared to be working at a billion miles an hour, overtime, weekends and answering my phone outside of hours which is not something I could take on while having a child in daycare and therefore I had no choice but to leave