Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display: inline-block for the darkmode-ignore element #109

Open
shkipan opened this issue Apr 3, 2025 · 1 comment
Open

Display: inline-block for the darkmode-ignore element #109

shkipan opened this issue Apr 3, 2025 · 1 comment

Comments

@shkipan
Copy link

shkipan commented Apr 3, 2025

Hi, I am using the library (huge thanks for it, really a cool feature), but I have faced an issue. On my website I want to apply .darkmode-ignore class to some elements with display: flex or display: grid. From what I see in the source code of version 1.5.7, besides the required isolation: isolate there is the line with display: inline-block. Could you clarify, why is this line needed and is it possible to remove it in future versions so no more problems like this occur?

@shkipan
Copy link
Author

shkipan commented Apr 3, 2025

I guess as the temp fix it is possible to create your own class with the isolation attribute and use it instead of darkmode-ignore class. But I think it would be great to fix the source code of the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant