Skip to content
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

Draft
wants to merge 137 commits into
base: main
Choose a base branch
from

Conversation

snowystinger
Copy link
Member

Closes

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

MahmoudElsayad and others added 30 commits March 11, 2024 23:12
Update domHelpers.test.js.
Add Tests for FocusScope.test.js.
New helper util `getRootBody`.
Fix `useRestoreFocus` issue.
Add new DOM util `getDeepActiveElement`.
update `useFocus` - `useFocusWithin` - `usePress`.
Test for `focusSafely`.
@rspbot
Copy link

rspbot commented Dec 23, 2024

@rspbot
Copy link

rspbot commented Dec 23, 2024

@rspbot
Copy link

rspbot commented Dec 23, 2024

@rspbot
Copy link

rspbot commented Dec 23, 2024

## 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
+}

@rspbot
Copy link

rspbot commented Dec 23, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants