cssinjs/jss

Media query styles applied only to the first element in function

Open

#1 320 ouverte le 25 mars 2020

Voir sur GitHub
 (26 commentaires) (6 réactions) (1 assigné)JavaScript (434 forks)batch import
feature requesthelp wanted

Métriques du dépôt

Stars
 (7 000 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur