]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove the default left styling in favor of Popper
authorRohit Sharma <rohit2sharma95@gmail.com>
Mon, 8 Feb 2021 17:19:19 +0000 (22:49 +0530)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 9 Feb 2021 12:34:27 +0000 (14:34 +0200)
scss/_dropdown.scss

index 9a4f3a04d51db1f2595176edb4d579cc06dfc7ad..b6184d2ad78dfc387e8de0619eeb927798cee6df 100644 (file)
@@ -17,7 +17,6 @@
 .dropdown-menu {
   position: absolute;
   top: 100%;
-  left: 0;
   z-index: $zindex-dropdown;
   display: none; // none by default, but block on "open" of the menu
   min-width: $dropdown-min-width;
   border: $dropdown-border-width solid $dropdown-border-color;
   @include border-radius($dropdown-border-radius);
   @include box-shadow($dropdown-box-shadow);
+
+  &[data-bs-popper] {
+    left: 0;
+  }
 }
 
 // scss-docs-start responsive-breakpoints