We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Online example
Related to the cssinjs/styled-jss#66
It looks like media queries don't work with function rules.
media queries
function rules
const styles = { container: props => ({ padding: props.active ? 10 : 20, '@media screen and (min-width: 100px)': { color: 'red', background: props.active ? 'white' : 'gray', }, }), container2: { padding: props => (props.active ? 10 : 20), '@media screen and (min-width: 100px)': { color: 'red', background: props => (props.active ? 'white' : 'yellow'), }, }, } const sheet = jss.createStyleSheet(styles, {link: true}).attach() sheet.update({active: false}) const App = () => ( <React.Fragment> <div className={sheet.classes.container}> <h2>@media does not work</h2> </div> <div className={sheet.classes.container2}> <h2>@media works well</h2> </div> </React.Fragment> )
The text was updated successfully, but these errors were encountered:
tbc in #682
Sorry, something went wrong.
No branches or pull requests
Online example
Related to the cssinjs/styled-jss#66
It looks like
media queries
don't work withfunction rules
.The text was updated successfully, but these errors were encountered: