Skip to content

Ability to style collapsed parent node #114

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Closed
smoothpie opened this issue Sep 21, 2018 · 2 comments
Closed

Ability to style collapsed parent node #114

smoothpie opened this issue Sep 21, 2018 · 2 comments

Comments

@smoothpie
Copy link

Hi, thanks for the lib!
I'm currently trying to style collapsed parent node and can't seem to find a way to do this, since collapsing doesn't change anything except for appending a child list, and there're still no elegant parent selector solutions out there :) Would be great if, for example, 'collapsed' class was added to parent node. Or, please, guide me if I'm missing something. Thanks!

@jakezatecky
Copy link
Owner

jakezatecky commented Sep 21, 2018

Yes, I do not think there is any way to get the parent via CSS selectors. Therefore, I added rct-node-expanded and rct-node-collapsed classes to the parent node as appropriate. This is available on v1.4.1, which was published moments ago.

@smoothpie
Copy link
Author

@jakezatecky awesome, thanks a lot :)

No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants