fix: exclude disabled elements from modal focus trap (#10562)#10597
fix: exclude disabled elements from modal focus trap (#10562)#10597Pratyush-Panda-2006 wants to merge 1 commit into
Conversation
|
🔒 Pull Request Closed: This PR has been automatically closed because it does not contain any file changes under the |
❌ Submission Validation FailedThank you for your contribution! However, some required files are missing. 📋 Required Structure🔍 Issues Found:🔠 Folder:
|
📊 CSS Bundle Size BenchmarkNo change in CSS bundle size. ✨ |
|
🔒 Pull Request Closed: This PR has been automatically closed because it failed the repository's submission validation check. To continue contributing, please address the errors shown in the validation summary comment above in your local branch, and open a new, clean Pull Request once resolved. Thank you! |
fixes #10562
Modal Focus Trap Fix: Updated
modal.js
to exclude elements with the disabled attribute from the list of focusable elements inside the modal.
New Unit Tests: Created a new test file
modal.test.js
simulating active modals containing enabled and disabled elements to verify that focus skips disabled items on both forward and backward tab actions.
Verification: Executed npm test, formatting, and linting. All tests passed.