cssinjs/jss

Media query styles applied only to the first element in function

オープン

#1,320 opened on 2020/03/25

 (26 件のコメント) (6 件のリアクション) (1 人の担当者)JavaScript (434 件のフォーク)batch import
feature requesthelp wanted

Repository metrics

Stars
 (7,000 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド