2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03:00

Remove the default positioning from .dropup (#33120)

This commit is contained in:
Rohit Sharma
2021-02-22 12:27:21 +05:30
committed by GitHub
parent 489e7b6798
commit d983744d12
+1 -4
View File
@@ -70,15 +70,12 @@
// Allow for dropdowns to go bottom up (aka, dropup-menu) // Allow for dropdowns to go bottom up (aka, dropup-menu)
// Just add .dropup after the standard .dropdown class and you're set. // Just add .dropup after the standard .dropdown class and you're set.
.dropup { .dropup {
.dropdown-menu { .dropdown-menu[data-bs-popper] {
top: auto; top: auto;
bottom: 100%; bottom: 100%;
&[data-bs-popper] {
margin-top: 0; margin-top: 0;
margin-bottom: $dropdown-spacer; margin-bottom: $dropdown-spacer;
} }
}
.dropdown-toggle { .dropdown-toggle {
@include caret(up); @include caret(up);