cssinjs / cssinjs/jss

[core] sheet.addRule with media query after attachment

Open
#1,038 3 comments 0 reactions 0 assignees View on GitHub
bug complexity:high help wanted
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

__Expected behavior:__
I should be able to create a style sheet, attach it to the dom and add a rule to a media query rule.

__Describe the bug:__
Currently, the rule is added virtually but isn't rendered.

__Codesandbox link:__
https://codesandbox.io/s/w66v8p8m35

__Versions (please complete the following information):__
- jss: 9, 10
- Browser chrome
- OS macOS

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and trace the core sheet attachment and media-query rule path in the JSS source. Confirm that adding a rule after attachment updates the rendered stylesheet, then verify the behavior in Chrome and add or run the relevant regression coverage if the repository identifies it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.