primer/react

[TreeView] Add area for `dragHandle` to be shown before the expand/collapse toggle

ayy-bc opened this issue · 1 comments

  • add an area in the grid to add the drag handle (before any other icon/button/component)
  • drag handle should be visible when hovering over the TreeView.Item
  • only take up the space if drag handle is passed from the consumer to tree view
  • when drag handle is passed from consumer, shift child level items to match alignment

https://github.com/github/github/pull/321236/files#diff-785247148fc29c46a71b4de392214511ae6709b4516cc4e921d5e9b37b5a23d3

showing a drag handle in front of Item 1

Uh oh! @ayy-bc, the image you shared is missing helpful alt text. Check your issue body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.