Skip to content

Commit

Permalink
Remove the default positioning from .dropup (#33120)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit2sharma95 committed Feb 22, 2021
1 parent 489e7b6 commit d983744
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scss/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d983744

Please sign in to comment.