From 7ef1d226d786795ea3dc4678a0c6b3989efc64d2 Mon Sep 17 00:00:00 2001 From: "Belding, Ryan (Seattle)" Date: Fri, 1 Jul 2016 12:36:55 -0500 Subject: [PATCH] temp fix for jss css-vendor content esc issue https://github.com/jsstyles/jss/issues/242 --- src/Shared.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Shared.js b/src/Shared.js index 39d16fb..c575030 100644 --- a/src/Shared.js +++ b/src/Shared.js @@ -17,11 +17,19 @@ class Shared { this.jss.use(camelCase()); this.jss.use(defaultUnit()); this.jss.use(vendorPrefixer()); + + // temporary instance for react-widgets sheet to workaround css-vendor content escaping issues + this.rwjss = jss.create(); + this.rwjss.use(extend()); + this.rwjss.use(nested()); + this.rwjss.use(camelCase()); + this.rwjss.use(defaultUnit()); + this.attachReactWidgetsSheet(); } attachReactWidgetsSheet = () => { - this.jss.createStyleSheet(reactWidgetsSheet, { named: false }).attach(); + this.rwjss.createStyleSheet(reactWidgetsSheet, { named: false }).attach(); } getRegisteredComponents = () => this.importedComponents;