I’ve solved it myself through a CSS-workaround (until the systemic solution is provided by BPMN.io):
CSS:
.highlight-overlay {
background-color: blue; /* color elements as green */
opacity: 0.2;
border-radius: 10px;
pointer-events: none; /* no pointer events, allows clicking through onto the element */
}
// preventing div, that is added by BPMN.IO as a wrapper around any of ours overlays, from catching mouse events
.djs-overlay:has(.highlight-overlay) {
pointer-events: none;
}