Skip to content

Commit ac6a87c

Browse files
committed
fix(demo): clean up controls sidebar
1 parent f606bed commit ac6a87c

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

demo/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
-->
3333
<a href="https://github.com/bkrem/react-d3-tree" class="github-corner" aria-label="View source on GitHub"><svg
3434
width="80" height="80" viewBox="0 0 250 250"
35-
style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
35+
style="fill:#2d3748; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
3636
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
3737
<path
3838
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"

demo/src/App.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
/* Custom node classes */
9191
.demo-node > circle {
9292
fill: #2d3748;
93+
stroke: #2d3748;
9394
}
9495

9596
/* Custom path classes */

demo/src/App.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import PureSvgNodeElement from './components/PureSvgNodeElement';
88
import './App.css';
99

1010
// Data examples
11-
import { debugData } from './mockData';
1211
import orgChartJson from './examples/org-chart.json';
1312
import flareJson from './examples/d3-hierarchy-flare.json';
1413
import reactTree from './examples/react-tree';
@@ -234,13 +233,6 @@ class App extends Component {
234233
<h3 className="title">v{version}</h3>
235234
<h4 className="prop">Examples</h4>
236235
<div style={{ marginBottom: '5px' }}>
237-
<button
238-
type="button"
239-
className="btn btn-controls btn-block"
240-
onClick={() => this.setTreeData(debugData)}
241-
>
242-
Debug
243-
</button>
244236
<button
245237
type="button"
246238
className="btn btn-controls btn-block"
@@ -267,7 +259,7 @@ class App extends Component {
267259
</div>
268260
</div>
269261

270-
<div className="prop-container">
262+
{/* <div className="prop-container">
271263
<h4 className="prop">
272264
Dynamically updating <code>data</code>
273265
</h4>
@@ -285,7 +277,7 @@ class App extends Component {
285277
>
286278
Remove Node
287279
</button>
288-
</div>
280+
</div> */}
289281

290282
<div className="prop-container">
291283
<h4 className="prop">Orientation</h4>

0 commit comments

Comments
 (0)