Skip to content

Commit f606bed

Browse files
committed
fix(demo): adjust node fill for demo
1 parent 9cadbc4 commit f606bed

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

demo/src/App.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,8 @@
8888
}
8989

9090
/* Custom node classes */
91-
.my-root-node {
92-
fill: red;
93-
}
94-
.my-branch-node {
95-
fill: yellow
96-
}
97-
.my-leaf-node {
98-
fill: green;
91+
.demo-node > circle {
92+
fill: #2d3748;
9993
}
10094

10195
/* Custom path classes */

demo/src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,8 @@ class App extends Component {
570570
? rd3tProps => this.state.renderCustomNodeElement(rd3tProps, this.state)
571571
: undefined
572572
}
573+
rootNodeClassName="demo-node"
574+
branchNodeClassName="demo-node"
573575
orientation={this.state.orientation}
574576
translate={{ x: this.state.translateX, y: this.state.translateY }}
575577
pathFunc={this.state.pathFunc}

0 commit comments

Comments
 (0)