Skip to content

Conversation

@thecrypticace
Copy link
Contributor

The syntax @apply … #{!important} was already handled but SCSS allows one to wrap the inside portion in any number of matched single or double quotes so we check for that as well.

Fixes #211

`#{!important}` was already handled but SCSS allows one to wrap it in any number of matched single or double quotes so we check for that as well
@thecrypticace thecrypticace merged commit 3ebd2f9 into main Aug 31, 2023
@thecrypticace thecrypticace deleted the fix/scss-apply-important branch August 31, 2023 13:56
bronisMateusz pushed a commit to bronisMateusz/prettier-plugin-tailwindcss-drupal that referenced this pull request Apr 16, 2025
* Don’t break `@apply … #{'!important'}` sorting

`#{!important}` was already handled but SCSS allows one to wrap it in any number of matched single or double quotes so we check for that as well

* Update changelog
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 this pull request may close these issues.

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

2 participants