Skip to content
New issue

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

Media queries not supporting when passing props in class, with multiple item with same class. #1613

Open
killuox opened this issue Apr 29, 2022 · 0 comments

Comments

@killuox
Copy link

killuox commented Apr 29, 2022

Expected behavior:
When I create a class function (passing props) , and I use media queries , the media queries should affect all elements that has that class.

Describe the bug:
The class only affect the first element the rest dont have the properties that the media queries give.

Reproduction:
Heres a codeSanbox with the bug in question.
https://codesandbox.io/s/rendering-emotion-vs-styled-components-vs-jss-forked-hoyd4v?file=/index.js:254-259

Versions (please complete the following information):

  • jss: 10.6.0
  • Browser [e.g. chrome, safari]: codeSandbox(chrome)
  • OS [e.g. Windows, macOS]: windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant