Missing Automatic Focus Restoration in Angular CDK Modal Dialogs
Background Angular’s CDK focus-trap directive confines keyboard focus inside a modal dialog. However, when the dialog is dismissed, the directive does not return focus to the element that originally triggered the dialog. This omission can disorient keyboard and screen‑reader users, breaking the expected navigation flow. Developers currently capture the activ