Skip to content

Commit

Permalink
temp fix for jss css-vendor content esc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Belding, Ryan (Seattle) committed Jul 1, 2016
1 parent e7e29b1 commit 7ef1d22
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ef1d22

Please sign in to comment.