Skip to content

6810: Fix tooltip rendering to appear correctly near hovered elements - #7052

Merged
shubhamparikh2704 merged 9 commits into
developfrom
tooltip-positioning-issue
Jan 22, 2026
Merged

shubhamparikh2704 merged 9 commits into
developfrom
tooltip-positioning-issue

Conversation

@darshanr0107

@darshanr0107 darshanr0107 commented Oct 7, 2025 •

Copy link
Copy Markdown
Contributor

📑 Summary

This PR fixes an issue where the tooltip was being rendered at the bottom of the page instead of appearing near the hovered element.
Resolves #6810

📏 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:.

@changeset-bot

changeset-bot Bot commented Oct 7, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a8d89db

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
mermaid Patch

Not sure what this means? Click here to learn what changesets are.

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

@netlify

netlify Bot commented Oct 7, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit a8d89db
🔍 Latest deploy log https://app.netlify.com/projects/mermaid-js/deploys/6912bb7f27fc6f0008b73941
😎 Deploy Preview https://deploy-preview-7052--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.

@pkg-pr-new

pkg-pr-new Bot commented Oct 7, 2025 •

Copy link
Copy Markdown

Open in StackBlitz

@mermaid-js/examples

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

mermaid

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

@mermaid-js/layout-elk

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

@mermaid-js/layout-tidy-tree

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

@mermaid-js/mermaid-zenuml

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

@mermaid-js/parser

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

@mermaid-js/tiny

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

commit: a8d89db

Comment thread packages/mermaid/src/diagrams/class/classDb.ts Fixed
@codecov

codecov Bot commented Oct 7, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 46 lines in your changes missing coverage. Please review.
✅ Project coverage is 3.54%. Comparing base (6b9f26d) to head (a8d89db).
⚠️ Report is 118 commits behind head on develop.

Files with missing lines Patch % Lines
packages/mermaid/src/diagrams/class/classDb.ts 0.00% 21 Missing ⚠️
...kages/mermaid/src/diagrams/common/svgDrawCommon.ts 0.00% 21 Missing ⚠️
packages/mermaid/src/diagrams/flowchart/flowDb.ts 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #7052      +/-   ##
==========================================
- Coverage     3.55%   3.54%   -0.01%     
==========================================
  Files          473     474       +1     
  Lines        47496   47527      +31     
  Branches       731     731              
==========================================
  Hits          1687    1687              
- Misses       45809   45840      +31     
Flag Coverage Δ
unit 3.54% <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/flowchart/flowDb.ts 0.00% <0.00%> (ø)
packages/mermaid/src/diagrams/class/classDb.ts 0.00% <0.00%> (ø)
...kages/mermaid/src/diagrams/common/svgDrawCommon.ts 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

🚀 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

argos-ci Bot commented Oct 7, 2025 •

Copy link
Copy Markdown

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

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Nov 11, 2025, 4:40 AM

darshanr0107 and others added 4 commits October 7, 2025 12:15
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
Comment thread packages/mermaid/src/diagrams/class/classDb.ts Outdated
Comment thread packages/mermaid/src/diagrams/flowchart/flowDb.ts Outdated
@shubhamparikh2704
shubhamparikh2704 added this pull request to the merge queue Jan 22, 2026
Merged via the queue into develop with commit c90ba64 Jan 22, 2026
26 checks passed
@shubhamparikh2704
shubhamparikh2704 deleted the tooltip-positioning-issue branch January 22, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tooltip appears at the bottom of the page instead of near the hovered element

4 participants