-
Notifications
You must be signed in to change notification settings - Fork 79
feat(dialog, modal, popover, input-date-picker, input-time-picker, sheet): support stacked component sequential closing with escape #9231
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
Merged
Changes from 77 commits
Commits
Show all changes
78 commits
Select commit
Hold shift + click to select a range
b9b684d
set up demo for testing component sequential closing behavior
Elijbet 281619e
WIP
driskull 2ad2c8e
WIP
Elijbet c95e3aa
WIP
Elijbet c54cab1
WIP
Elijbet e3823ea
add docs
Elijbet 1187a3a
simplified HTML for Demo and e2e test to reflect the demo workflow
Elijbet fadbb0d
cleanup
Elijbet 0622da1
stacked focus-trap components test
Elijbet 00e576b
relocate test for closing of stacked focus-trap components to globalS…
Elijbet 55fbb07
fix failing tests
Elijbet 0af108e
add wait for events open/close to input-date-picker for additional check
Elijbet 47cf21d
add wait for events open/close to input-time-picker for additional check
Elijbet 6a1ad45
merge dev
Elijbet 8ca1dc5
docs
Elijbet d2324b2
merge dev
Elijbet 5861f82
fix timing issues with modal and sheet
Elijbet 95af390
remove focus-trapping logic and let popover handle it
Elijbet 69dbd5a
WIP
Elijbet ba39a7f
WIP
Elijbet 3e4b38e
enable focus trap in input-time-picker and fix failing tests
Elijbet 85f4ef2
Helper to manage focusTrap by determining if a click event occurred o…
Elijbet 7418a25
WIP
Elijbet a9dd5c0
WIP
Elijbet 58622a4
WIP test
Elijbet 0376e14
add focus trap to dialog
Elijbet f11fb0f
WIP
Elijbet 31764b2
WIP
Elijbet a7cebb6
WIP should not toggle popovers with triggerDisabled
Elijbet c993e02
merge dev
jcfranco 327aa38
WIP popover
Elijbet 785fed5
WIP popover
Elijbet 84f881e
WIP popover
Elijbet 84c20d8
WIP input-date-picker
Elijbet 9db785e
merge dev
Elijbet 06570cd
merge dev
Elijbet c3e5da4
test cleanup
Elijbet ef5ad2a
cleanup
Elijbet 16564f1
merge dev
jcfranco f7dd170
WIP
Elijbet a493275
WIP
Elijbet 6d3ed51
WIP
Elijbet d8d0412
WIP
Elijbet 9f18ccc
WIP
Elijbet 1e67bf8
Utilities for implementing FocusTrapComponent are no longer necessary…
Elijbet 3e94a4d
WIP
Elijbet 16c7f1a
WIP
Elijbet 5d5b90b
WIP
Elijbet 20cde10
make clickOutsideDeactivates depend on outsideCloseDisabled value
Elijbet 249081a
merge dev
Elijbet 829d93b
remove clickOutsideDeactivates option from focus-trap since scrim han…
Elijbet d8acece
merge dev
Elijbet 76a4cf7
cleanup
Elijbet 766ec1e
merge dev
Elijbet f720d10
change logic to handle ignoring an Escape key press in focus-trap
Elijbet 6bf5a5f
change logic to handle ignoring an Escape key press in focus-trap on …
Elijbet 7f110b6
adjust test timing to accomodate changes
Elijbet 0b582b8
adjust timing on modal tests
Elijbet 7afdb64
remove closable from panel so it doesn't prevent shell from closing
Elijbet d8f34c5
this.effectiveReferenceElement
Elijbet 87f4f56
cleanup
Elijbet b645dea
remove redundant connectFocusTrap(this);
Elijbet 353ec39
sub waiting for timeout to waiting for event
Elijbet 79ddd20
seperate stackedFocusTrap.e2e.ts
Elijbet 337342b
cleanup stackedFocusTrap test
Elijbet 212f6bc
clean up test
Elijbet 0f8c4e2
assert on focus component
Elijbet fd53ff4
remove redundant components from modal, add dialog, account for focus…
Elijbet ee5d656
add camelCase util and target sheet-button id instead of sheet as it …
Elijbet 7e3dda8
tab out of focus-retaining input components to assert on focus return…
Elijbet 06e68ff
add comments to focusTrap options and cleanu up tests
Elijbet cfe719d
remove focusTrap component properties and pass options to connectFocu…
Elijbet b7f7411
cleanup
Elijbet b75baee
move anonymous focusTrap option functions to private methods on the c…
Elijbet fc85f74
remove stylistic changes and group helpers
Elijbet 5097b0b
cleanup
Elijbet 2c40889
clickOutsideDeactivates option on sheet and scrim comment, remove ext…
Elijbet 5117688
explainer to sheet-button assertion
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
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
Oops, something went wrong.
Oops, something went wrong.
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.