Closed shash7 closed 4 years ago
Expected behavior:
* { color: 'red'; }
Describe the bug: When I use the asterisk selector and output the stylesheet via toString, the output class name is escaped:
const styles = { " * ": { color: "red" } }; var obj = jss.createStyleSheet(styles); console.log(obj); var style = obj.toString();
Output:
.\ \*\ -0-0-1 { color: "red"; }
Versions:
Hmm, actually all selectors have string escape issues when I use the toString() method. Anyone knows a workaround?
I think what you are looking here for is the jss-plugin-global.
Expected behavior:
Describe the bug: When I use the asterisk selector and output the stylesheet via toString, the output class name is escaped:
Output:
Versions: