From: Martijn Cuppens Date: Wed, 23 Jan 2019 03:59:15 +0000 (+0100) Subject: Add default value for `$ignore-warning` (#28103) X-Git-Tag: v4.3.0~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfba588d0d1ea020634f1a8f2911c7222702b125;p=thirdparty%2Fbootstrap.git Add default value for `$ignore-warning` (#28103) --- diff --git a/scss/mixins/_deprecate.scss b/scss/mixins/_deprecate.scss index 43d6f1ea04..df070bc596 100644 --- a/scss/mixins/_deprecate.scss +++ b/scss/mixins/_deprecate.scss @@ -3,7 +3,7 @@ // This mixin can be used to deprecate mixins or functions. // `$enable-deprecation-messages` is a global variable, `$ignore-warning` is a variable that can be passed to // some deprecated mixins to suppress the warning (for example if the mixin is still be used in the current version of Bootstrap) -@mixin deprecate($name, $deprecate-version, $remove-version, $ignore-warning) { +@mixin deprecate($name, $deprecate-version, $remove-version, $ignore-warning: false) { @if ($enable-deprecation-messages != false and $ignore-warning != true) { @warn "#{$name} has been deprecated as of #{$deprecate-version}. It will be removed entirely in #{$remove-version}."; }