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

Use of @apply ... #{'!important'} in scss #211

Closed
abrahamsaanchez opened this issue Aug 31, 2023 · 1 comment · Fixed by #212
Closed

Use of @apply ... #{'!important'} in scss #211

abrahamsaanchez opened this issue Aug 31, 2023 · 1 comment · Fixed by #212
Assignees

Comments

@abrahamsaanchez
Copy link

What version of prettier-plugin-tailwindcss are you using?

v0.5.3

What version of Tailwind CSS are you using?

v3.3.3

What version of Node.js are you using?

v18.16.0

What package manager are you using?

npm

What operating system are you using?

Ubuntu

Reproduction URL

https://github.com/abrahamsaanchez/prettier-plugin-important

Describe your issue

As you can see in the styles.scss file in the provided repo, when the plugin order the class the #{'!important'} go to the first place, breaking the @apply rule.
The #{'!important'} should be at the last place.

@abrahamsaanchez abrahamsaanchez changed the title Use of #{'!important'} in scss Use of @apply ... #{'!important'} in scss Aug 31, 2023
@thecrypticace thecrypticace self-assigned this Aug 31, 2023
@thecrypticace
Copy link
Contributor

Hey, I've merged this fix in #212 and gone ahead and published a release to NPM. This is now available as v0.5.4.

Thanks for reporting it!

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

Successfully merging a pull request may close this issue.

2 participants