cssinjs / cssinjs/jss

Media query styles applied only to the first element in function

Open
#1,320 26 comments 6 reactions 1 assignee Claimed by @pranshuchittora View on GitHub
feature request help wanted
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

__Expected behavior:__
when changing screen size media query in function should apply styles to all the component that uses it

__Describe the bug:__
only the first component gets the styles of media query in function, it looks like it was introduced in 10.0.1

__Codesandbox link:__
https://codesandbox.io/s/react-jss-playground-nwurq

__Versions (please complete the following information):__
- jss:10.1.1
- Browser saw it on chrome, havent tested others
- OS windows10:

![image](https://user-images.githubusercontent.com/43632837/77542171-6ec52480-6eae-11ea-8953-34fa6f6fa177.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.