]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Deprecate nav-divider() mixin
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Wed, 21 Aug 2019 08:38:14 +0000 (10:38 +0200)
committerMartijn Cuppens <martijn.cuppens@gmail.com>
Thu, 22 Aug 2019 06:10:03 +0000 (08:10 +0200)
scss/_dropdown.scss
scss/mixins/_nav-divider.scss

index 6c688f6ace0de7250e0ff64e52a83d5c51575a8b..76f33a4fd80c549fcfdacd07f642b0e55e066650 100644 (file)
 
 // Dividers (basically an `<hr>`) within the dropdown
 .dropdown-divider {
-  @include nav-divider($dropdown-divider-bg, $dropdown-divider-margin-y);
+  @include nav-divider($dropdown-divider-bg, $dropdown-divider-margin-y, true);
 }
 
 // Links, buttons, and more within the dropdown menu
index 4fb37b6224720ec2ee926c8932cc4286acfe3624..3e0cceafef73f63da68b14be2cd777f4f062e980 100644 (file)
@@ -2,9 +2,10 @@
 //
 // Dividers (basically an hr) within dropdowns and nav lists
 
-@mixin nav-divider($color: $nav-divider-color, $margin-y: $nav-divider-margin-y) {
+@mixin nav-divider($color: $nav-divider-color, $margin-y: $nav-divider-margin-y, $ignore-warning: false) {
   height: 0;
   margin: $margin-y 0;
   overflow: hidden;
   border-top: 1px solid $color;
+  @include deprecate("The `nav-divider()` mixin", "v4.4.0", "v5", $ignore-warning);
 }