Skip to content

Commit

Permalink
Merge pull request #23 from concord-consortium/185596251-add-feedback…
Browse files Browse the repository at this point in the history
…-during-node-creation

feat: Add feedback during edge creation [PT-185596251]
  • Loading branch information
dougmartin authored Jul 13, 2023
2 parents 04b7805 + 00b9961 commit 1fe3180
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/graph.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@
.rubberband {
pointer-events: none;
}

svg ellipse.can-add-edge:hover {
fill: lightgreen;
}
}
1 change: 1 addition & 0 deletions src/components/graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ export const Graph = (props: Props) => {

const circles = nodes
.append("ellipse")
.attr("class", drawingMode === "addEdge" ? "can-add-edge" : "")
.attr("fill", "#fff")
.attr("stroke", "#999")
.attr("stroke-width", d => 2)
Expand Down

0 comments on commit 1fe3180

Please sign in to comment.