bpmn-io / bpmn-js-examples

Examples how to use bpmn-js
https://bpmn.io/toolkit/bpmn-js
1.83k stars 1.23k forks source link

Use Color via Marker + CSS Styling,How to modify marker end color #287

Closed tony2y closed 2 months ago

tony2y commented 2 months ago

https://github.com/bpmn-io/bpmn-js-examples/blob/de54447f59631d320a3c6eefdd306bf8a2271824/colors/README.md#option-3-color-via-marker--css-styling

This is my existing CSS, which can only be modified to the connection line and cannot change the color of the marker end!

  .highlight.djs-connection > .djs-visual > path {
    stroke: var(--van-success-color) !important;
  }

If the second method is used, modeling cannot be obtained in the Viewer。

No provider for "modeling"! (Resolving: touchInteractionEvents -> dragging -> move -> contextPad -> modeling)