question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sequenceDiagram messages appear with line through them

See original GitHub issue

Describe the bug

It seems that any version of MermaidJS >8.5.2 renders the sequence diagram messages with the line through them.

mermaid-sequence-messages

Once the version is downgraded to 8.5.2, the message labels appear correctly over the lines:

image

To Reproduce

(updated 2021-12-02)

Steps to reproduce the behavior:

  1. git clone https://github.com/ourchitecture/hello-cloud/
  2. Run make start-docs (requires GNU Make and docker). This will build and start a MkDocs Material site using “./mkdocs.yml” and “./src/docs”.
  3. Visit http://localhost:8000/hello-cloud/contribute/ to see the diagrams in action
  4. Edit the file “./mkdocs.yml” and upgrade the MermaidJS script:
    extra_javascript:
      - "https://unpkg.com/mermaid@8.13.4/dist/mermaid.min.js"
    
  5. Hopefully, you also see the labels “pushed down” with the lines crossing through them …

Expected behavior

Message labels appear above the lines.

Screenshots

See above.

Code Sample

sequenceDiagram
    participant C as Contributor
    participant M as Maintainer
    participant R as Repository

    C->>R: Check roadmap
    R->>C: tada
    C->>R: Check roadmap
    R->>C: teedee

Desktop (please complete the following information):

  • OS: Windows Pro 11
  • Browser: Firefox
  • Version: 94.0.2

Smartphone (please complete the following information):

n/a

Additional context

n/a

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ericiscommented, Dec 2, 2021

@Yash-Singh1 I’ve also updated the original “Steps to reproduce” with the lessons from above.

1reaction
Yash-Singh1commented, Dec 3, 2021

Thanks for the clear writeup! I just hosted the site locally and found out that this bug is Firefox-specific.

Screenshot from 2021-12-02 17-05-07

I actually don’t know SVG, but I did find a temporary CSS solution:

.messageText {
    dominant-baseline: middle;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Instructions and Examples - SequenceDiagram.org
Messages. Messages are created by clicking and dragging in the diagram. Hold Shift before clicking for dashed line; Hold Ctrl before clicking for...
Read more >
UML 2 Tutorial - Sequence Diagram - Sparx Systems
Sequence diagrams are good at showing which objects communicate with which other objects; and what messages trigger those communications.
Read more >
Messages in UML diagrams - IBM
A message is an element in a Unified Modeling Language (UML) diagram that defines a specific kind of communication between instances in an...
Read more >
Sequence Diagram Tutorial - Complete Guide with Examples
A sequence diagram is structured in such a way that it represents a ... The arrowhead used to show this type of message...
Read more >
Sequence Diagram - Visual Paradigm
A sequence diagram is an interaction diagram that emphasizes the time-ordering of messages. It depicts the objects and classes involved in the scenario...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found