Skip to content

fix(scss): !default directive - #3724

Merged
azz merged 1 commit into
prettier:masterfrom
alexander-akait:fix-scss-default
Jan 12, 2018
Merged

azz merged 1 commit into
prettier:masterfrom
alexander-akait:fix-scss-default

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Jan 11, 2018 •

Copy link
Copy Markdown
Member

postcss add node.important when you use !important, but don't handle !default.

Just remove !default from value and add node.default to detect when you use !default.

Issue: #2799

@j-f1 j-f1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make a test that has multiple spaces before !default?

@alexander-akait

Copy link
Copy Markdown
Member Author

@j-f1 done 👍

@j-f1 j-f1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@azz
azz merged commit 934f679 into prettier:master Jan 12, 2018
@azz azz added this to the 1.10.3 milestone Jan 12, 2018
@azz

azz commented Jan 12, 2018

Copy link
Copy Markdown
Member

Thanks!

@alexander-akait
alexander-akait deleted the fix-scss-default branch January 12, 2018 11:15
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 18, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants