mermaidjs / mermaid-live-editor

Location has moved to https://github.com/mermaid-js/mermaid-live-editor
https://mermaidjs.github.io/mermaid-live-editor/
MIT License
977 stars 181 forks source link

Imported mermaid's default theme scss into index.js to display tooltip #31

Closed tarnelope closed 4 years ago

tarnelope commented 5 years ago

This is based on Issue https://github.com/knsv/mermaid/issues/682 If this is the correct way to get tooltip to appear, I will update the docs to recommend importing the scss and also clarify how one can define their own callback function.

Currently the tooltip display at the bottom of the page even if it's out of the visible window. The issue seems to be that .mermaidTooltip is not picking up the styling defined in flowchart.scss. This PR imports default/index.scss so that the tooltip will appear as expected.

mermaid-tooltip