-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
text-hide() warning message #26237
Comments
Yes, but it's deprecated; that is the whole point of the warning message. :) /CC @mdo |
I feel like the vanilla Bootstrap source code shouldn't spawn warning messages about itself. I have some projects where I build custom versions of Bootstrap and they all spawn warnings now even though I'm not using |
Yeah unfortunately that is correct.
I'm not sure if it's technically possible to achieve what we want without
removing the actual mixin call and atill show the warning.
If your anyone else finds a way, let us know.
…On Tue, Apr 10, 2018, 12:07 Alexander Rechsteiner ***@***.***> wrote:
I feel like the vanilla Bootstrap source code shouldn't spawn warning
messages about itself.
I have some projects where I build custom versions of Bootstrap and they
all spawn warnings now even though I'm not using text-hide() and am
perfectly innocent. 😇
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26237 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAVVteowijpDpdmjYZBtUk4l6ENuCEqGks5tnHZUgaJpZM4TNy1i>
.
|
One solution I can think of: Mixin: @mixin text-hide($ignoreWarning: false) {
...
@if ($ignoreWarning == false) {
@warn "The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.";
}
} Usage in .text-hide {
@include text-hide(true);
} This will spawn a warning for normal use of |
Hmm, nice approach. Can you make a PR and CC me?
…On Tue, Apr 10, 2018, 12:37 Alexander Rechsteiner ***@***.***> wrote:
One solution I can think of:
Mixin:
@mixin text-hide($ignoreWarning: false) {
...
@if ($ignoreWarning == false) {
@warn "The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.";
}
}
Usage in _text.scss
.text-hide {
@include text-hide(true);
}
This will spawn a warning for normal use of text-hide() but gives the
option to suppress the warning.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26237 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAVVtWXTWvOgQo69udJRkjJ20YQG1qA5ks5tnH1tgaJpZM4TNy1i>
.
|
Will do, give me half an hour. |
Done here: #26242 |
Usually when there is a deprecation warning about something going to be remove, the package itself doesn't use that thing. Typically I see the package migrating to the new preferred usage, and others can use that commit as an example way to migrate any of their own usage. |
Currently there is a deprecation warning when running `mix phx.server` trown from within bootstrap itself. This is expected behavior. To find out more see twbs/bootstrap#26237. Co-authored-by: tmecklem <timothy@mecklem.com>
I just commented out the warning...since I don't use the feature. ;) |
When building the new 4.1 scss source code, I get the following warning message:
It seems text-hide() ist still used in https://github.com/twbs/bootstrap/blob/v4.1.0/scss/utilities/_text.scss#L57
The text was updated successfully, but these errors were encountered: