Skip to content

custom styles on icon to add nodes in between #215

Closed Answered by vasanthid
vasanthid asked this question in Q&A
Discussion options

You must be logged in to vote

Nvm, I was able to get it working applying styles to line and rect elements.

<Add hidden={false} className='add-on-edge' />

.add-on-edge line {
  stroke: white;
  transform: scale(60%) translateX(5px) translateY(5px);
  stroke-width: 2;
}

.add-on-edge rect:nth-child(even) {
  fill: #505050;
  rx: 50%;
  ry: 50%; 
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vasanthid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant