Can't prevent dark reader from changing the style of some specific elements. #7440
Unanswered
ShahriarKh
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Use the |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
I think you could use element.style.setProperty("color", "green", "important") as a temporary workaround. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there!
I'm using dark reader on my website and the package is really great, Thank you for developing it! However, I'm really getting mad because of some CSS issues. some parts of the page don't look right in dark mode.
For example, I have a yellow button with black text. When I turn the dark mode on, the background becomes a little darker and makes text white which is unreadable.
Expected result:
(The colors are the same as the first picture)
Another example is a purple button that turns to blue when dark mode is on!
Expected result:
(The colors are the same as the first picture)
All I want to do is to prevent dark reader from applying styles to some specific elements.
I already saw #4056 & #7318, but can't get it to work.
ignoreInlineStyle, but all I see it does is to remove inline attributes; the styles don't get removed. I also tried different selectors:.class,[attribute=value],element,element.class, ... but none of them work.css, because I have a lot of elements that should be excluded. It takes a lot of time and effort to write CSS for every excluded itemIf it helps, I'm using
next.js 11.1.2+scss (sass 1.43.4)anddarkreader 4.9.4What should I do?
Beta Was this translation helpful? Give feedback.
All reactions