You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When following the documentation for mermaid sequence diagrams, mermaid instructs the user to annotate the box color or rgb value.
Bug description
When using material for mkdocs, and you specify any color value in the mermaid diagram, the change is reflected in the CSS class of the resulting rect object in HTML but that class is overridden by the default CSS classes in material.
```mermaid
sequenceDiagram
autonumber
actor User
box rgb(33,66,99) OT Network
participant User
participant App
participant Keycloak
end
box transparent Customer Business LAN
participant Active Directory
participant NGFW
end
box transparent Azure
participant EntraAD
end
Note over User,App: User must trust App Certificate
User->>App: Initial Request
App-->>User: Redirect to Keycloak
User->>Keycloak: Frontend Auth request
Activate Keycloak
alt On-Prem IdP
Note over Keycloak,Active Directory: Keycloak must trust AD Certificate
Keycloak->>Active Directory: LDAPs Request
Active Directory->>Keycloak: LDAPs Response
Keycloak->>User: Authication Grant + Tokens
else Azure IdP
Note over User,EntraAD: User must trust Inspection Certificate
Keycloak-->>User: OIDC Auth Redirect to EntraAD
User->>NGFW: Auth Request
Note over NGFW: HTTPS Inspection
NGFW->>EntraAD: Proxied Auth Request
EntraAD->>NGFW: Auth Response
NGFW->>User: Proxied Auth Response + Tokens
end
User->>App: Request + Token
App->>App: Validates Token
App->>User: Returns secure page
sequenceDiagram
autonumber
actor User
box rgb(33,66,99) OT Network
participant User
participant App
participant Keycloak
end
box Purple Customer Business LAN
participant Active Directory
participant NGFW
end
box transparent Azure
participant EntraAD
end
Note over User,App: User must trust App Certificate
User->>App: Initial Request
App-->>User: Redirect to Keycloak
User->>Keycloak: Frontend Auth request
Activate Keycloak
alt On-Prem IdP
Note over Keycloak,Active Directory: Keycloak must trust AD Certificate
Keycloak->>Active Directory: LDAPs Request
Active Directory->>Keycloak: LDAPs Response
Keycloak->>User: Authication Grant + Tokens
else Azure IdP
Note over User,EntraAD: User must trust Inspection Certificate
Keycloak-->>User: OIDC Auth Redirect to EntraAD
User->>NGFW: Auth Request
Note over NGFW: HTTPS Inspection
NGFW->>EntraAD: Proxied Auth Request
EntraAD->>NGFW: Auth Response
NGFW->>User: Proxied Auth Response + Tokens
end
User->>App: Request + Token
App->>App: Validates Token
App->>User: Returns secure page
Loading
Steps to reproduce
Consider the example diagram submitted (which correctly renders on GitHub) but all boxes render the same when used with material for mkdocs (See attached screenshot)
Thanks for reporting. I already answered on a similar issue in #5034 (comment). What you're asking for is orthogonal to our implementation, as we parametrize colors with variables. Allowing the author to override colors would also not work with light/dark mode, since most colors don't work well in both modes. Thus, it is considered out of scope. You might be able to pull this off by using another Mermaid.js integration (and not our native one) like the mermaid2 plugin.
Thank you for the thoughtful reply. Perhaps instead, making it clear that you override purposefully up front in the mermaid section? Might reduce the noise long term.
Context
When following the documentation for mermaid sequence diagrams, mermaid instructs the user to annotate the box color or rgb value.
Bug description
When using material for mkdocs, and you specify any color value in the mermaid diagram, the change is reflected in the CSS class of the resulting
rect
object in HTML but that class is overridden by the default CSS classes in material.Related links
Reproduction
Example of correct real-time rendering on GitHub:
Steps to reproduce
Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: