-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
wip: dnm testing size and verdaccio shadowdom for size testing #7548
base: main
Are you sure you want to change the base?
Conversation
Update domHelpers.test.js.
Add Tests for FocusScope.test.js. New helper util `getRootBody`.
Fix `useRestoreFocus` issue. Add new DOM util `getDeepActiveElement`.
… navigation example`.
update `useFocus` - `useFocusWithin` - `usePress`.
Test for `focusSafely`.
1 similar comment
# Conflicts: # packages/@react-aria/focus/src/FocusScope.tsx
There appears to be no appreciable difference between node.contains and event.composedPath
|
There is a large difference in amount of time for shadow tree walker Native: Shadow: The good news is that usually we don't run it this far or as many times. It's typically in response to a user action with the walker destination not very far away and with 1 iteration being roughly 0.1ms, that's plenty of time.
|
|
1 similar comment
## API Changes
@react-aria/focus/@react-aria/focus:isFocusable isFocusable {
- element: HTMLElement
+ element: Element
returnVal: undefined
} @react-aria/utils/@react-aria/utils:createShadowTreeWalker+createShadowTreeWalker {
+ doc: Document
+ root: Node
+ whatToShow?: number
+ filter?: NodeFilter | null
+ returnVal: undefined
+} /@react-aria/utils:ShadowTreeWalker+ShadowTreeWalker {
+ constructor: (Document, Node, number, NodeFilter | null) => void
+ currentNode: Node
+ doc: Document
+ filter: NodeFilter | null
+ firstChild: () => Node | null
+ lastChild: () => Node | null
+ nextNode: () => Node | null
+ previousNode: () => Node | null
+ root: Node
+ whatToShow: number
+} /@react-aria/utils:getActiveElement+getActiveElement {
+ doc: Document
+ returnVal: undefined
+} /@react-aria/utils:getEventTarget+getEventTarget {
+ event: any
+ returnVal: undefined
+} /@react-aria/utils:nodeContains+nodeContains {
+ node: Node | null | undefined
+ otherNode: Node | null | undefined
+ returnVal: undefined
+} /@react-aria/utils:isShadowRoot+isShadowRoot {
+ node: Node | null
+ returnVal: undefined
+} |
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: