Skip to content

Commit

Permalink
Allow rgb css theme colors
Browse files Browse the repository at this point in the history
Fixes #49978
  • Loading branch information
mjbvz committed May 17, 2018
1 parent 96e3ed4 commit ab69262
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
defaultStyles.id = '_defaultStyles';

const vars = Object.keys(initData.styles || {}).map(variable => {
return `--${variable}: ${initData.styles[variable].replace(/[^\#\"\'\,\. a-z0-9\-]/gi, '')};`;
return `--${variable}: ${initData.styles[variable].replace(/[^\#\"\'\,\. a-z0-9\-\(\)]/gi, '')};`;
});
defaultStyles.innerHTML = `
:root { ${vars.join('\n')} }
Expand Down

0 comments on commit ab69262

Please sign in to comment.