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

Function strip-units - update warn message #1016

Closed
wants to merge 3 commits into from

Conversation

stonio
Copy link

@stonio stonio commented Mar 21, 2017

Update warn message about strip-units() function to close #1013.

Update warning message about strip-units function.
@@ -14,8 +14,8 @@

@function strip-units($value) {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `strip-units` is deprecated and will be " +
Copy link
Contributor

Choose a reason for hiding this comment

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

This function is deprecated, so I think we should leave in [Deprecation] and is deprecated.

According to Wikipedia:

…deprecated status may also indicate the feature will be removed in the future.

As you mentioned in #1013, “Use the renamed strip-unit function instead” is a bit confusing because you can’t use that yet if you are still on 4.x. So we should re-word only that sentence to make it clear that you will need to use the renamed function when you upgrade to 5.0.

@@ -15,7 +15,7 @@
@function strip-units($value) {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `strip-units` is deprecated and will be " +
"removed in 5.0.0. Use the renamed `strip-unit` function instead.";
"removed in version 5 and replaced by `strip-unit` function.";
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we indent this line as it was before (to line up with @warn?

And swap version 5 for 5.0.0, so that we speak in specific version numbers?

Finally, I think we are missing the word the before strip-unit.

@tysongach
Copy link
Contributor

Thanks, @stonio! Merged as 0408419.

@tysongach tysongach closed this Apr 1, 2017
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

2 participants