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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -70,14 +70,11 @@
// Allow for dropdowns to go bottom up (aka, dropup-menu)
// Just add .dropup after the standard .dropdown class and you're set.
.dropup {
.dropdown-menu {
.dropdown-menu[data-bs-popper] {
top: auto;
bottom: 100%;
&[data-bs-popper] {
margin-top: 0;
margin-bottom: $dropdown-spacer;
}
margin-top: 0;
margin-bottom: $dropdown-spacer;
}
.dropdown-toggle {