I really believe that when it goes wrong for women, post childbirth, it happens because they chose to have children with the wrong man. If a career and progression and earning potential is important to you, then you need to choose a man who is willing to take, or at least share, the hit. So so so many women choose to shack up with men who, deep down, view their careers and ambitions as being more important.
For decent earners, I generally think giving up work to be a SAHM is risky and shortsighted, there is absolutely no evidence to suggest that having a SAHP benefits children, but there is plenty to show that being a SAHM disadvantages women. Which is fine, if you're willing to take that risk, but you are then putting your children at the corollary risk of being disadvantaged if their dad walks out or dies, and they're left with a mum who will likely really struggle to support them. It just never feels like a sensible choice, in terms of the economic stability of the family, it's almost always an emotional decision based on the needs of the mother. Obviously doesn't apply for NMW earners, as career breaks don't impact potential and salary rarely covers childcare.
Interestingly, a man who takes a career break to raise his children does not generally suffer the same loss of position and earnings as a woman.