design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

TreeGrid: support optional node-level actions (54)

Open mbeard opened this issue 10 years ago • 6 comments

We have a need to support node-level actions for items within the tree. The primary use-case is around foldering and the management of folders in the context of the tree (rename, delete, etc.).

tree-item-actions

mbeard avatar Jun 16 '16 21:06 mbeard

For accessibility purposes, tree views are not permitted to have node-level actions. Nodes may do one of two things, expand/collapse, or trigger a single action.

If you want multiple actions per node, you'll want something such as "TreeGrid" which is table based.

jhausler1266 avatar Jun 16 '16 21:06 jhausler1266

Thanks @jhausler1266 glad you flagged this as an anti-pattern. Let me follow up with others on our design team, we may need to collaborate with you and others on an alternative solution.

mbeard avatar Jun 17 '16 13:06 mbeard

@mbeard Has there been any movement with this from the design standpoint?

interactivellama avatar Aug 11 '16 15:08 interactivellama

Rumi was looking into this last week and exploring use of the TreeGrid.

mbeard avatar Aug 11 '16 16:08 mbeard

@futuremint Any issue with closing this? We can't implement until the pattern is in SLDS, anyway.

interactivellama avatar Feb 22 '17 21:02 interactivellama

Nope. Considering the accessibility implications, this would be a great opportunity for us to work with the designer on changing the design to something accessible when it comes up.

futuremint avatar Feb 23 '17 14:02 futuremint