question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[react-jss] stylesheet doesn't updates if `!important` is set

See original GitHub issue

Expected behavior: Stylesheet updates and color toggles with !important

Describe the bug: The stylesheet doesn’t update if !important is set. It starts the update if remove !important

Codesandbox link: https://codesandbox.io/s/sleepy-curie-rkczo

Versions (please complete the following information):

  • jss: 10.0
  • Browser [e.g. chrome, safari]: firefox, chrome
  • OS [e.g. Windows, macOS]: macOS

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
David-Finkelsteincommented, Jan 3, 2021

@kof any update?

1reaction
kofcommented, Apr 24, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

JSS integration with React
Lazy evaluation - Style Sheets are created when a component mounts and ... Function values and rules are updated automatically with any data...
Read more >
javascript - !important inline styles in react - Stack Overflow
watch out, I found out that setting a 'inline' style with react (as an object) with !important like you did there, will give...
Read more >
Why We're Breaking Up with CSS-in-JS - DEV Community ‍ ‍
Hi, I'm Sam — software engineer at Spot and the 2nd most active maintainer of Emotion, a widely-popular CSS-in-JS library for React.
Read more >
cssinjs/Lobby - Gitter
I was hoping for a way to transpile JSS to a CSS file(s). I tried using the jss-loader for Webpack and another called...
Read more >
Migrating to v5: getting started - Material UI - MUI
If you are using a React version below 17.0.0, update your packages to at least v4.11.2 for Material UI and v17.0.0 for React....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found