-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[BUG] node-sass does not properly compile nested media queries #959
Comments
I've been using tabler in combination with the sass library without the mixins fix for a while now without any issues. Maybe an older version of sass fixes the issue till the mixins fix is released? |
An older version might fix it. Not sure what version of sass you are using but the latest (1.44.0) gave me errors without the mixins fix. But the mixins pull request only fixes building with sass. Tabler itself uses node-sass. Which means that the |
@dheineman Ah, I will fix that next tuesday, but if you make an PR I will gladly merge it today. |
@dheineman I've made PR for this change: #963 chan you check it? |
Look good. thanks @codecalm |
Describe the bug
It seems that the fix a9e1336 @rjd22 commited to solve #892 does not work properly with node-sass as this does not seem to compile the nested media query correctly thus leaving it out of the generated css entirely.
I was able to reproduce this behaviour with the tabler repo itself using the steps below. But an easier way to confirm this is just by searching for
theme-dark-auto
in v1.0.0-beta5/dist/css/tabler.css as compared to v1.0.0-beta4The issue can be solved by using
sass
instead ofnode-sass
(which does require #956 to be merged first) and given that node-sass itself is deprecated this might be the best solution.From what i can tell there are minimal behavioral differences for tabler between the two versions (namely the numeric precision seems to increase by 1) but some further testing might be required.
To reproduce
Steps to reproduce the behavior:
npm run build
You can see that currently the only changes in
dist/css/tabler.css
are from pull request 956. And that the file does not contain any reference to thetheme-dark-auto
class.npm install
to install the different sass version.npm run build
to rebuild the css.Now the
dist/css/tabler.css
has a lot of changes but these are mostly related to code styling. The more interesting thing is that the file now does contain thetheme-dark-auto
class required for auto dark mode to work.The text was updated successfully, but these errors were encountered: