Add focus trap to Modal component (#28754)

* Add focus-trap-react npm package

* Trap the focus for the Modal

* In some cases, the focus will not return to the trigger element

* If there are no tabbable elements, the focus should fallback

* Add explanations for focusTrapOptions props and extend test

* Auto generate package-lock.json - Add focus-trap-react npm package

GitOrigin-RevId: 488a05d5e95dd369c69bedcfaf7c1fd5e456e302
This commit is contained in:
Rebeka Dekany
2025-11-17 09:52:37 +01:00
committed by Copybot
parent 198a2fc943
commit b773ac2715
6 changed files with 206 additions and 9 deletions

View File

@@ -138,6 +138,7 @@
"express-http-proxy": "^1.6.0",
"express-session": "^1.17.1",
"file-type": "^21.0.0",
"focus-trap-react": "^11.0.4",
"globby": "^5.0.0",
"helmet": "^6.0.1",
"https-proxy-agent": "^7.0.6",