Skip to content

bug/7471: fix gantt font size and auto scale the barHeight and allow gantt to take themeVariables#7537

Open
ankithapai wants to merge 5 commits intomermaid-js:developfrom
ankithapai:bug/7471_gnatt-chart-theme-variables-font-size
Open

bug/7471: fix gantt font size and auto scale the barHeight and allow gantt to take themeVariables#7537
ankithapai wants to merge 5 commits intomermaid-js:developfrom
ankithapai:bug/7471_gnatt-chart-theme-variables-font-size

Conversation

@ankithapai
Copy link
Copy Markdown

@ankithapai ankithapai commented Mar 27, 2026

📑 Summary

Fixed Gantt font-size handling, enabled automatic barHeight scaling, and allowed Gantt to consume themeVariables.
Resolves #7471

📏 Design Decisions

Describe the way your implementation works or what design decisions you made if applicable.

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added necessary unit/e2e tests.
  • 📓 have added documentation. Make sure MERMAID_RELEASE_VERSION is used for all new features.
  • 🦋 If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 27, 2026

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit 5cfc1bd
🔍 Latest deploy log https://app.netlify.com/projects/mermaid-js/deploys/69d46ec01b960400085857dc
😎 Deploy Preview https://deploy-preview-7537--mermaid-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 27, 2026

⚠️ No Changeset found

Latest commit: 5cfc1bd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the Type: Bug / Error Something isn't working or is incorrect label Mar 27, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 27, 2026

Open in StackBlitz

@mermaid-js/examples

npm i https://pkg.pr.new/@mermaid-js/examples@7537

mermaid

npm i https://pkg.pr.new/mermaid@7537

@mermaid-js/layout-elk

npm i https://pkg.pr.new/@mermaid-js/layout-elk@7537

@mermaid-js/layout-tidy-tree

npm i https://pkg.pr.new/@mermaid-js/layout-tidy-tree@7537

@mermaid-js/mermaid-zenuml

npm i https://pkg.pr.new/@mermaid-js/mermaid-zenuml@7537

@mermaid-js/parser

npm i https://pkg.pr.new/@mermaid-js/parser@7537

@mermaid-js/tiny

npm i https://pkg.pr.new/@mermaid-js/tiny@7537

commit: 5cfc1bd

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 0% with 62 lines in your changes missing coverage. Please review.
✅ Project coverage is 3.34%. Comparing base (2b938d0) to head (5cfc1bd).

Files with missing lines Patch % Lines
...ckages/mermaid/src/diagrams/gantt/ganttRenderer.js 0.00% 61 Missing ⚠️
packages/mermaid/src/diagrams/gantt/styles.js 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #7537      +/-   ##
==========================================
- Coverage     3.34%   3.34%   -0.01%     
==========================================
  Files          524     524              
  Lines        55392   55445      +53     
  Branches       795     795              
==========================================
  Hits          1853    1853              
- Misses       53539   53592      +53     
Flag Coverage Δ
unit 3.34% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/mermaid/src/diagrams/gantt/styles.js 0.00% <0.00%> (ø)
...ckages/mermaid/src/diagrams/gantt/ganttRenderer.js 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@argos-ci
Copy link
Copy Markdown

argos-ci bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ⚠️ Changes detected (Review) 48 changed Apr 7, 2026, 2:53 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug / Error Something isn't working or is incorrect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

themeVariables : fontSize has no effect in a Gantt diagram

1 participant