Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
dfba588d
Commit
dfba588d
authored
6 years ago
by
Martijn Cuppens
Committed by
XhmikosR
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add default value for `$ignore-warning` (#28103)
parent
5c56e9ad
1 merge request
!28721
Hot test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/mixins/_deprecate.scss
+1
-1
scss/mixins/_deprecate.scss
with
1 addition
and
1 deletion
+1
-1
scss/mixins/_deprecate.scss
+
1
-
1
View file @
dfba588d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
// This mixin can be used to deprecate mixins or functions.
// 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
// `$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)
// 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
)
{
@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
}
."
;
@warn
"
#{
$name
}
has been deprecated as of
#{
$deprecate-version
}
. It will be removed entirely in
#{
$remove-version
}
."
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets