Sequence Diagram actor man text
should have a unique class
#5245
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
Currently, the actor man figure has an
actor-man
class, but its text has anactor
class, which is associated with the default actor type (rectangle). This means there is no way to style only the text of the actor figure or only the text of the actor rectangle.Steps to reproduce
text.actor
as described in the documentationScreenshots
No response
Code Sample
No response
Setup
Suggested Solutions
First approach:
actor-man
classactor-text
class to the text tag in both the rectangle actor and the man actorThis might cause issues with backwards compatibility for users styling with the
text.actor
tag, but is overall cleaner IMO.Second approach:
actor-box
class to the rectangle actor text tagactor-man
class to the figure actor text tagBetter in terms of maintaining the open-close principle, but the text element in the man actor having the same class associated specifically with the rectangle actor is a little confusing.
Either way, this will enable styling the text of actors from both types if wanted, but also unique styling for the text in each type of actor
Additional Context
I'd be happy to work on this. Can implement whichever approach is decided to be better
The text was updated successfully, but these errors were encountered: