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

fix(postcss-colormin): Fix bug where color value is mutated #546

Merged
merged 5 commits into from Jul 13, 2018

Conversation

weaintplastic
Copy link
Contributor

Fix bug where color value is mutated when tranforming to hsl

Fixes #545

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Can you add tests?

@weaintplastic
Copy link
Contributor Author

@evilebottnawi I've update the existing test case for rgba to hsla to cover that use-case plus updated the expected result of two others that change along with this fix.

@alexander-akait
Copy link
Member

@weaintplastic thanks 👍

Copy link
Contributor

@andyjansson andyjansson left a comment

Choose a reason for hiding this comment

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

The integration tests need to be updated as well.

@@ -6,7 +6,7 @@ import {
processCSSWithPresetFactory,
} from '../../../../util/testHelpers';

const {passthroughCSS, processCSS} = processCSSFactory(plugin);
const { passthroughCSS, processCSS } = processCSSFactory(plugin);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is causing issues with our linting settings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@andyjansson Sorry, I've missed that and fixed it with the next commit.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.65% when pulling 8b85059 on weaintplastic:patch-1 into 9b6686b on cssnano:master.

@weaintplastic
Copy link
Contributor Author

@andyjansson integration tests have been updated and CI check is green. Thanks for your direction. 🙌🏻

@alexander-akait
Copy link
Member

/cc @andyjansson

@alexander-akait
Copy link
Member

@andyjansson looks good for me, merge, feel free to feedback

@alexander-akait alexander-akait merged commit 1c3cb43 into cssnano:master Jul 13, 2018
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.

None yet

4 participants