Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rerender mermaid diagrams on theme change #509

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

torbjornbp
Copy link
Contributor

Make mermaid render diagrams on manual toggle between themes, after initial page load.

The original code renders the correct theme only on the initial page load. Toggling to a different theme after initial page load does not change the mermaid theme, which leads to light grey text on white background etc.

Make mermaid render diagrams on manual toggle between themes, after initial page load
Copy link

netlify bot commented Dec 7, 2024

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit a8eeaa5
🔍 Latest deploy log https://app.netlify.com/sites/hugo-hextra/deploys/6754b3ea68e8730008d6325a
😎 Deploy Preview https://deploy-preview-509--hugo-hextra.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 site configuration.

Copy link
Owner

@imfing imfing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Looks great!

@imfing imfing merged commit bd34a5b into imfing:main Dec 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants