cssinjs/jss

Media query styles applied only to the first element in function

开放

#1,320 创建于 2020年3月25日

 (26 条评论) (6 个反应) (1 位负责人)JavaScript (434 个派生)batch import
feature requesthelp wanted

仓库指标

星标
 (7,000 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南