You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce the behavior, please provide code snippets or a repository:
Create a div with some style <div style={{ margin: "200px", textAlign: "center", width: "100px", height: "100px", border: "1px solid black", background: "red !important" }} > some text </div>
result
when i'm inspect element, style rule for background is gone.
if i remove the !important it works
Expected behavior
style rule is working with !important
System information
OS: Windows 10
Browser : Chrome Version 72.0.3626.109
Version of Next.js: 8.0.0
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
can't get CSS in JS with !important working
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
<div style={{ margin: "200px", textAlign: "center", width: "100px", height: "100px", border: "1px solid black", background: "red !important" }} > some text </div>
Expected behavior
style rule is working with !important
System information
The text was updated successfully, but these errors were encountered: