-
Notifications
You must be signed in to change notification settings - Fork 33
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
Directives in CSS Not Working #66
Comments
Just a note added:
And there are no comments in the file as well. |
Hi @bmoellers did you try to remove |
@bmoellers I know this is late, but I was just dealing with the same problem. If you're using SASS, you need to use SASS' interpolation syntax, according to the RTLCSS page: https://rtlcss.com/learn/usage-guide/value-directives/#tip For example: |
Doing this correctly gets the comment to be parsed but it looks like the comment is also not being stripped? I have removeComments set to true |
So I hooked this up in to a next JS implementation. This requires a couple steps but it is definitely building the CSS for both RTL and LTR together. Running I have it able to flip between the two styles based on language but what I am not able to do is keep the check mark as it should.
So we sort of draw the checkmark using some code to use the borders:
But this results in a flipped check mark in the generated CSS.
This generates the following CSS:
So I know that either 1) I want the plug in to leave it alone to see what happens or 2) I want the transform to be transform: rotate(-45deg) scaleX(-1); through testing.
So I tried this:
Deleted the generated CSS so it would regenerate and it is the same as it was above.
Then I tried this:
Still it does not generate any different output.
Am I missing something?
My postcss.config.js file that next.js uses for its webpack is this:
The text was updated successfully, but these errors were encountered: