-
-
Notifications
You must be signed in to change notification settings - Fork 875
Suppress deprecation warnings when called from bourbon #1002
Conversation
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.
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; |
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.
For clarity, what about renaming this from $deprecation-warnings
to $user-setting-for-deprecation-warnings
?
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.
Maybe just $user-deprecation-warnings-setting
? Bit shorter.
Thanks, @CupOfTea696! Merged as 14ee63f. |
We just released v4.3.1 which includes these changes. |
@tysongach You're welcome, and awesome that it's released! |
@tysongach to not spam #702 I'm confirming that this is related to issues I'm seeing. |
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