Fix for issue with updated stylis

This commit is contained in:
Knut Sveidqvist 2021-07-15 10:58:22 +02:00
parent c29486f515
commit 896c7eca57
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ const render = function(id, _txt, cb, container) {
const rules = stylis(`#${id}`, getStyles(graphType, userStyles, cnf.themeVariables));
const style1 = document.createElement('style');
style1.innerHTML = rules;
style1.innerHTML = `#${id} ` + rules;
svg.insertBefore(style1, firstChild);
// Verify that the generated svgs are ok before removing this