frontend-collective / frontend-collective/react-sortable-tree

Request: CSS classes for each level of depth

Open
#405 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

# Requesting a Feature?

It would be nice to have the possibility of exposing a CSS class for styling each depth level. I tried with a little hack on node_modules adding `depth__${path.length}` hardcoded in the class list of the component.

I tried to add it like a prop (something like `` ) but I haven't any success with this approach.

![example](https://user-images.githubusercontent.com/37783365/46140675-08782b00-c252-11e8-8074-0b3b3bd3f0a5.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.