🎯 Solution for WAI ARIA compatible modal dialogs or full-screen tasks, you were looking for
preventScrollOnFocus
No public API change. Just types coming with React 18 should work as well as Shadow DOM is much better supported now.