chore: expand support for custom trees#7817
Conversation
…eeitem' and 'tree'
🦋 Changeset detectedLatest commit: 3efc334 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
…ct into chore/expand-actionlist-roles
Co-authored-by: francinelucca <40550942+francinelucca@users.noreply.github.com>
…ct into chore/expand-actionlist-roles
This reverts commit d146c05.
|
👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/20336 |
Relates to https://github.com/github/primer/issues/6456
Making ActionList compatible with tree-like structures and also exporting
useRovingTabIndexfor custom usages. Made some modifications to the hook but they're all opt-in so treeview functionality should not be affected.Changelog
New
ActionList/Item.tsxto includetreeitemandtree, improving accessibility and compatibility with tree-like structures.useRovingTabIndexhook inTreeViewto support additional options such aspreventScroll, anddependencies, allowing for more customizable and robust keyboard navigation.useRovingTabIndexhook from the package's main entry point, making it available for external use.ActionListContainerContextto the exports and as a static property on theActionListcomponent, making it easier for consumers to access the context for advanced use cases.Rollout strategy
Testing & Reviewing
Merge checklist