In the event of your divorce and subsequent passing, the surviving parent will be appointed as the guardian for your children.
What the law says
The Guardianship of Infants Act makes the surviving parent the child’s guardian on the other parent’s death (section 6), and mothers and fathers have equal rights (section 5). A court order made in the divorce about custody can still matter, so check it. If you name a guardian in your Will, that person acts jointly with the surviving parent unless the court orders otherwise (section 7). If you have concerns about the surviving parent, speak to a family lawyer.
Related: Can the other parent challenge my choice?
Legal basis and further reading
General information, not legal advice. Divorce and custody orders depend on the case.