Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Suppress deprecation warnings when called from bourbon #1002

Closed
wants to merge 2 commits into from
Closed

Suppress deprecation warnings when called from bourbon #1002

wants to merge 2 commits into from

Conversation

CupOfTea696
Copy link

@CupOfTea696 CupOfTea696 commented Feb 6, 2017

What does this PR do?

Suppresses deprecation warnings when deprecated functions or mixins from other bourbon functions or mixins. This will stop a lot of confusion when people suddenly see loads of deprecation warnings for functions or mixins they didn't use directly.

If this is related to an existing issue, include a link to it as well.

Solves: #1001

Copy link
Contributor

@tysongach tysongach left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for taking this on. It’s a bit of trickery, but it’s nice isolating the warnings only to those the user needs to know about.

👍

@@ -22,5 +22,8 @@
/// @output `border-color`

@mixin border-color($vals...) {
$deprecation-warnings: $output-bourbon-deprecation-warnings;
Copy link
Contributor

Choose a reason for hiding this comment

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

For clarity, what about renaming this from $deprecation-warnings to $user-setting-for-deprecation-warnings?

Copy link
Author

Choose a reason for hiding this comment

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

Maybe just $user-deprecation-warnings-setting? Bit shorter.

@tysongach
Copy link
Contributor

tysongach commented Feb 8, 2017

Thanks, @CupOfTea696!

Merged as 14ee63f.

@tysongach tysongach closed this Feb 8, 2017
@tysongach
Copy link
Contributor

We just released v4.3.1 which includes these changes.

@CupOfTea696
Copy link
Author

@tysongach You're welcome, and awesome that it's released!

@joshsmith
Copy link

@tysongach to not spam #702 I'm confirming that this is related to issues I'm seeing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants