feat: Focus Management within ShadowDOM #6046
Add `getRootNode` utility.
c026270f
Update `getRootNode` util.
9299ceec
Update `getOwnerWindow` util.
71836e38
Add tests for Shadow DOM handling using `getRootNode`.
10893b98
Update comment.
5f81d34a
Fix FocusScope.tsx in Shadow DOM.
bfb94290
Add more test for FocusScope.test.js.
3448ed77
Fix another `useRestoreFocus` issue with restoring focus in `Keyboard…
0c07404b
Add tests for `getDeepActiveElement`
90906bf4
Add `useFocus` shadow DOM tests.
314fc44e
Update `focusSafely`.
9cb6c5a7
Update `useInteractionOutside` for Shadow DOM support.
67399bb1
Update `useFocusVisible` for Shadow DOM support.
59c37056
Add `useInteractOutside` tests.
3c854088
Add test for use case mentioned in issue #1472.
61ba1b0a
Add tests for `usePress` hook.
75d7fa50
Update the fix for `useInteractOutside` to use simpler one.
db45ef48
Update `useOverlay` to use composedPath.
f9b94a36
Tests refactor.
758575c6
Revert `useOverlay` changes as it works correctly without these changes.
25ef5c5a
Fix types.
0d4f70ef
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
3cf20910
MahmoudElsayad
marked this pull request as ready for review 2 years ago
Fix types.
1d8c4391
lint.
e5dbda17
lint.
ae7b76ef
Fix failing tests.
aea5d8dd
Fix failing tests.
f2ca9b79
Fix failing tests.
4d6ff95e
Test CI
4c53797a
Test CI
85b7146d
Fix shadow DOM tests
a001f2a3
Fix shadow DOM tests.
d00f0b2a
Fix CI?
e875828b
Fix CI?
b483e61d
Fix CI?
b8ef0550
Re-add commented test.
cc2a7c4d
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
7447a797
Update `getRootNode` to handle iframes as well, and everything that …
492d83f7
Merge remote-tracking branch 'upstream/main' into shadow-dom-enhancem…
139a2092
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
805561b3
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
a3199916
Fix tests.
dc2231d6
Fix tests?
bd536b6a
Fix tests?
f1aa64ae
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
6426c081
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
7cafb6aa
Fix tests.
1a3e0689
Fix tests.?
f1fe3644
Fix tests.?
24550d63
Fix tests.?
b9a11ee5
Fix tests.?
97d73f29
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
720ee183
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
6f80dbc8
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
6ca6996d
Apply suggestions from code review
1f6ecf39
Update packages/@react-aria/interactions/test/usePress.test.js
13278d93
- Update tests to use `createShadowRoot` util.
93a50714
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
4ca6f759
- Update tests and remove reactCompat.
9fa339d0
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
0586b9e3
- Leftover.
90e52b96
Merge remote-tracking branch 'origin/shadow-dom-enhancement-1-getRoot…
f2b2d188
- Revert changes to getFocusableTreeWalker.
717a8ab0
- Remove casting.
979a542f
- return null in case element is disconnected in `getRootNode`.
fbe8f89a
- Casting.
bd222919
- Update unit test.
6548170b
- Handle focus movements between shadow DOMs.
db93e53d
- TS fixes.
98e255e1
Merge remote-tracking branch 'upstream/main' into shadow-dom-enhancem…
820cd72b
Merge remote-tracking branch 'refs/remotes/upstream/main' into shadow…
580e1f03
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
e15086e8
Update usePress.test.js
9453cac2
Refactors and TS errors.
debb4ba7
Update fix.
cd6a2d77
Remove broken sandbox link.
7673da17
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
a8773c1f
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
60cb5dac
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
8d2a6dd4
devongovett
force-pushed the
main
branch
from
52c048e2
to
8cb1a5d3
2 years ago
devongovett
force-pushed the
main
branch
from
8cb1a5d3
to
3013156e
2 years ago
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
52baba26
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
afd28e9f
Refactor `getRootNode` to improve root node handling.
173cb03f
Use `getDeepActiveElement` inside focusSafely.ts to get the active el…
9d40d58c
Refactor event listener registration
40cd5dd2
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
72596b99
Remove `ownerDocument` fallback in usePress.ts
ae30def5
Refactor `createEventListener` for type-safe caching.
c5ddb242
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
4ce0c1c6
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
d75d68fc
- Test out the updated getOwnerWindow to fix iframe focus issues.
2d847576
- Test out the updated getOwnerWindow to fix iframe focus issues.
a690850b
- Test?
638d7ebc
- Revert Focus scope changes, for testing.
2c4a9bce
- Fix tests?
9210f8e2
- Fix tests?
3cb08744
- Fix tests?
0181bc3a
- Revert the changes to getRootNode.
930a2c3d
- Revert `isElementInScope` as well.
1cecef01
- Test out if instance check failure across context for iframes is wh…
2bd25ddd
- Replace the use of `instanceof` with `nodeType` to correctly identi…
bc7d1886
- Fix ESlint errors.
3b6a4cd9
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
66614160
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
18f05192
devongovett
force-pushed the
main
branch
from
fc5c8bd8
to
e60fb427
1 year ago
devongovett
force-pushed the
main
branch
from
a79adcf0
to
3013156e
1 year ago
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
27d8d858
snowystinger
changed the title Focus Management within Shadow DOM feat: Focus Management within Shadow DOM 1 year ago
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
22e75e62
snowystinger
changed the title feat: Focus Management within Shadow DOM feat: Focus Management within ShadowDOM 1 year ago
- Update the usages of `instanceof` to use `nodeType` instead.
51932a55
Update packages/@react-aria/interactions/src/useFocusVisible.ts
541dd5f5
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
4b352601
- Update the usages of `instanceof` to use `nodeType` instead.
3fa8c44d
- Lint.
ab9f8dbd
- Lint.
47be3933
- Update `getDeepActiveElement` to accept an optional document or sha…
54cfe242
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
e918e38d
- Add extra unit test for `getDeepActiveElement`.
95a6b64f
- Update `getDeepActiveElement` to always rely on `getRootNode`.
c830aabb
- Update `getDeepActiveElement` to always rely on `getRootNode`.
319617f4
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
3e1730ea
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
0d0af544
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
563501a7
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
5aeb0240
refactor usePress to still have global listeners for cleanup across b…
03c23c4d
snowystinger
dismissed their stale review
via 03c23c4d
1 year ago
fix lint and test
cf3f567b
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
64348e47
restore remaining document level listeners
fc82be09
fix tests
b62d83fd
fix lint
366565cb
simplify
edc9892b
Update packages/@react-aria/focus/src/FocusScope.tsx
9b08f75e
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
39543de4
fix autofocus
4c4e0066
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
bbdb3420
minor test updates to preserve test intent
96b91665
review comments
87b35422
fix esm test
650bf4af
fix lint
1660aad1
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
d90cc98e
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
c43a15e3
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
0d962dbc
check in speed tests
9bf04b18
fix lint
21b80bdd
snowystinger
force pushed
from
80daa95d
to
21b80bdd
1 year ago
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
5bf5bb7c
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
a4f35b13
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
4e425194
Add feature flag and fix a couple probable bugs
393c6982
snowystinger
dismissed their stale review
via 393c6982
1 year ago
Merge branch 'main' into shadow-dom-enhancement-1-getRootNode
71e3d328
Update NOTICE.txt
dc4ca82c
snowystinger
dismissed their stale review
via dc4ca82c
1 year ago
snowystinger
dismissed their stale review
via dc4ca82c
1 year ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub