-
Notifications
You must be signed in to change notification settings - Fork 80
feat(dialog): add focusTrapDisabled property for non-modal dialogs #11362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Elijbet
merged 29 commits into
dev
from
elijbet/10685-focusTrapDisabled-attribute-for-non-modal-dialogs
Feb 5, 2025
Merged
Changes from 19 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0439c86
feat(dialog): add focusTrapDisabled attribute to for non-modal dialogs
Elijbet 702b4c8
rework logic
Elijbet 61cb7b2
WIP
Elijbet 3fd589b
doc
Elijbet 5225520
handleFocusTrap - deactivate when not open
Elijbet 99aa605
WIP
Elijbet 7e910f6
willUpdate changes
Elijbet a82272d
cleanup test and remove check from activateFocusTrap
Elijbet aa64339
more control in tests
Elijbet 66736a4
adjust visibility check
Elijbet f4a4a99
cleanup
Elijbet bdf7a80
cleanup
Elijbet cf808df
Merge branch 'dev' into elijbet/10685-focusTrapDisabled-attribute-for…
Elijbet 278464f
assert on the element focus in tests and add _focusTrapDisabledOverri…
Elijbet 0e2ab22
typeError fix
Elijbet 826d93f
refactor and cleanup
Elijbet 0c7a4f9
consistency with focusTrapDisabled and Override
Elijbet 2873183
corrected doc and condition, added spec test
Elijbet 5c11de0
focusTrapDisabledOverride spec
Elijbet ee12e16
cleanup
Elijbet 3cbdaa5
DRY spec test to use beforeEach, add more test coverage
Elijbet b6af077
merge conflicts: enforce focusTrapDisabled and Override on components…
Elijbet 360898b
change type on focusTrapComponent interface for useFocusTrap controll…
Elijbet 0a27896
Merge branch 'dev' into elijbet/10685-focusTrapDisabled-attribute-for…
Elijbet 2187f3c
set modal and focusTrapDisabled properties
Elijbet b0792a6
e2e set focus
Elijbet 11f8a0b
no need to react to the prop change outside of onOpen
Elijbet 96a6d1d
group e2e tests based on whether it's a modal or non-modal, cleanup
Elijbet ff3413d
safeguard e2e
Elijbet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Elijbet marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.