Skip to content

Fix mermaid styling for git diagrams

Piotr Stankowski requested to merge trakos/gitlab-docs:fix-mermaid-git into main

Description

Mermaid supports drawing git diagrams. The git branches are assigned specific colors on this type of diagrams. However, currently GitLab has some custom styles that disables the background colors, and sometimes it results in white text on white background, making it unreadable.

This commit disables this custom style override for git diagram specific classes.

Before and after screenshots

Before After
image image

Related issues and links

Styles were added in !2452 (merged)

Merge request reports