question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Customizing styles

See original GitHub issue

I am trying to ascertain as to how can I roundify tree nodes and control their opacity and add some of the gradients styles - but i fail to see it happening : its not very customizable - I changed node-renderer-default.scss to have following - rowContents { @extend %rowItem; position: relative; height: 100%; border: solid #BBB 1px; border-left: none; box-shadow: 0 2px 2px -2px; padding: 0 5px 0 10px; border-radius: 2px; min-width: 230px; flex: 1 0 auto; display: flex; align-items: center; justify-content: space-between; background-color: white; border-bottom-right-radius:15px; border-top-right-radius:15px }

But this is just me - I have forked to customize, but I would like to know if there’s already an option to provide style parameters to the tree other than node-renderer - thanks.

PS - I began learning react just a few weeks back so pardon my obvious ignorance…

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
TheBluskycommented, May 18, 2017

Same issue here. I just need to reduce the width of each row. And it seems really painful. I got a project generated with “create-react-app”, and so scss, so there’s a lot a things to add to my project to make it work.

Any workaround to override styling ?

3reactions
rrousselGitcommented, Mar 22, 2017

There’s style, className, and innerStyle available. Which is enough. I customized mine so that className disabled remove the dragHandle.

Don’t forget that there’s priority in CSS. rowContents { } is not “strong” enough.

Use div.rowContents { } to override the default css of react-sortable-tree.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize or create new styles - Microsoft Support
On the Home tab, in the Styles group, right-click the style that you want to change, and then click Update [Style Name] to...
Read more >
Adding Custom Styles - Tailwind CSS
Best practices for adding your own custom styles to Tailwind. ... This guide covers topics like customizing your design tokens, how to break...
Read more >
How to customize - Material UI - MUI
Material UI provides several different ways to customize a component's styles. Your specific context will determine which one is ideal.
Read more >
Customizing component styles - Angular Material
Angular Material supports customizing component styles via Sass API as described in the theming guide. This document provides guidance on defining custom ......
Read more >
Customizing Swiftype Visual Styles
Customizing Swiftype Visual Styles. The Swiftype JavaScript embed code injects HTML and CSS into your page to present search results and autocomplete.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found