-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
fix(printer-postcss): ignore escape \ and escaped / in Less #5597
Conversation
avoid messing up Less files containing \/ (escaped /) fix prettier#5208
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need tests
tests/css_scss/scss.scss
Outdated
@@ -1038,3 +1038,12 @@ $my-map: ( | |||
.something { | |||
grid-template-columns: 1 2fr (3 + 4); | |||
} | |||
|
|||
// Ignore escape "\" in SCSS mixins | |||
mixin margin-bottom-1\/3 { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
label { | ||
@include margin-bottom-1\\/3; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mixin margin-bottom-1\/3 {
margin-bottom: 0.8rem;
}
label {
@include margin-bottom-1\/3;
}
Add this test, looks you fix issue in scss
too, great!
@@ -2025,7 +2025,7 @@ $my-map: ( | |||
} | |||
|
|||
// Ignore escape "\\" in SCSS mixins | |||
mixin margin-bottom-1\\/3 { | |||
@mixin margin-bottom-1\\/3 { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've added
@mixin margin-bottom-1\/3 {
margin-bottom: 0.8rem;
}
label {
@include margin-bottom-1\/3;
}
to tests/css_scss/scss.scss
and ran yarn test -u
. This is auto generated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, thanks!
Avoid messing up Less files containing \/ (escaped /).
Ignore escape \ and escaped / in Less.
Fix #5208 issue.
docs/
directory)✨Try the playground for this PR✨