you need a focus trap directive and possibly a aria-hide-app-content directive (so AT assistive technology can't see the content behind the dialog)