likec4 icon indicating copy to clipboard operation
likec4 copied to clipboard

[Feature request] apply styling to relationships with specific tag

Open mind6 opened this issue 1 year ago • 2 comments

Currently it's possible to style elements by tag under views:

views {
   style element.tag = #optional {
      color secondary
   }

   //NOT POSSIBLE
   style relationship.tag = #optional {
      line dotted
   }
}

I would appreciate if this can be done for relationship.tag as well. My use case is I'm using relationships to represent dataflows, and I would like to mark some flows as #optional, and draw them differently.

Thanks!

mind6 avatar Nov 15 '24 05:11 mind6

@mind6 what you can do right now:

include * -> * where kind is optional with {
      line dotted
    }

jentor avatar Dec 03 '24 09:12 jentor

While the proposed behaviour would be useful, one can also define a custom style for the relationship on the specification level:

-- specification

  relationship optional {
    line dotted
  }

 -- model

serviceA .optional serviceB

spaasis avatar Oct 16 '25 10:10 spaasis