1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix escape issue (#2115)

For instance:
```css
.MuiGrid-gutter-xs-8-1393152966 > .MuiGrid-typeItem-3088349198 {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}
```
This commit is contained in:
Olivier Tassinari 2017-05-30 20:51:52 +02:00 committed by Tim Neutkens
parent e1d5c3df55
commit 3a0fe4349c

View file

@ -9,11 +9,7 @@ export default class MyDocument extends Document {
const styleContext = getDefaultContext()
return {
...page,
styles: (
<style id='jss-server-side' type='text/css'>
{styleContext.styleManager.sheetsToString()}
</style>
)
styles: <style id='jss-server-side' dangerouslySetInnerHTML={{ __html: styleContext.styleManager.sheetsToString() }} />
}
}