Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Mar 14, 2018
1 parent 23dfe1e commit 0d0f793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mermaidAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ const render = function (id, txt, cb, container) {
if (graphType === 'flowchart') {
const classes = flowRenderer.getClasses(txt)
for (const className in classes) {
style += `\n.${className} rect,.${className} polygon,.${className} circle,.${className} ellipse{${classes[className].styles.join(' !important;')} !important;}`
style += `\n.${className} > * { ${classes[className].styles.join(' !important; ')} !important; }`
}
}

Expand Down

0 comments on commit 0d0f793

Please sign in to comment.