Skip to content

Commit c81898c

Browse files
ayy-bcsiddharthkp
andauthored
Add TreeView.LeadingAction sub-component (#4546)
* add grid area for drag handle when data-drag-and-drop is true * add test to verify dnd attribute * css updates * add docs * test(vrt): update snapshots * Sid/treeview leading action (#4569) * wip: leading action slot * clean up a little * change from prop to subcomponent * remove outdated test * spacer should come before leadingAction * merge snapshots from main * merge package-lock from main * add visual tests * use IconButton for leadingAction * add example of drag handle on hover * Create tame-nails-live.md * test(vrt): update snapshots * change LeadingActio type to React.FC<TreeViewVisualProps> and accept children * change LeadingAction of type React.FC<TreeViewVisualProps> * typo * add `variant="invisible"` to icon button in stories * add leadingActionId and aria-hidden to LeadingAction subcomponent * remove `leadingActionId` to describe the tree view item * remove unused leadingActionId * remove docs from changeset --------- Co-authored-by: ayy-bc <[email protected]> Co-authored-by: Siddharth Kshetrapal <[email protected]> Co-authored-by: siddharthkp <[email protected]>
1 parent 5647054 commit c81898c

15 files changed

+217
-4
lines changed

.changeset/tame-nails-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": minor
3+
---
4+
5+
TreeView: Add support for `TreeView.LeadingAction`
9.27 KB
Loading
9.37 KB
Loading
9.25 KB
Loading
9.24 KB
Loading
9.25 KB
Loading
9.27 KB
Loading
9.3 KB
Loading
9.29 KB
Loading
9.25 KB
Loading

0 commit comments

Comments
 (0)