Skip to content

Toggling light/dark mode breaks mermaid diagrams #11733

@antonpirker

Description

@antonpirker

Steps to Reproduce

Expected Result

The mermaid diagram should render with right theme set.

Actual Result

The mermaid component breaks and just prints some CSS.

Additional Info

Thats the code where we set the mermaid theme:

https://github.com/getsentry/sentry-docs/blob/master/src/components/mermaid.tsx#L29

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions