mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
Fix for issue with updated stylis
This commit is contained in:
@@ -337,7 +337,7 @@ const render = function(id, _txt, cb, container) {
|
|||||||
const rules = stylis(`#${id}`, getStyles(graphType, userStyles, cnf.themeVariables));
|
const rules = stylis(`#${id}`, getStyles(graphType, userStyles, cnf.themeVariables));
|
||||||
|
|
||||||
const style1 = document.createElement('style');
|
const style1 = document.createElement('style');
|
||||||
style1.innerHTML = rules;
|
style1.innerHTML = `#${id} ` + rules;
|
||||||
svg.insertBefore(style1, firstChild);
|
svg.insertBefore(style1, firstChild);
|
||||||
|
|
||||||
// Verify that the generated svgs are ok before removing this
|
// Verify that the generated svgs are ok before removing this
|
||||||
|
Reference in New Issue
Block a user