cssinjs / cssinjs/styled-jss

@global is not working

Open
#76 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
214
Forks
14
PR merge metrics
No merged PRs in 30d

Description

demo: https://codesandbox.io/s/async-sky-5xyhv

body doesn't have a lightblue background as expected

```jsx
import React from "react";
import ReactDOM from "react-dom";

import styled from 'styled-jss';

function App(props) {
return (


Hello CodeSandbox


Start editing to see some magic happen!



);
}

const StyledApp = styled(App)({
border: '1px solid red',
'@global': {
body: {
backgroundColor: 'lightblue'
}
}
})

const rootElement = document.getElementById("root");
ReactDOM.render(, rootElement);
```

styled-jss: 2.2.3

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.