Skip to content

Commit

Permalink
Apply positioning only when Popper is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit2sharma95 committed Apr 7, 2021
1 parent 0795a77 commit 624f645
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions scss/_dropdown.scss
Expand Up @@ -16,7 +16,6 @@
// The dropdown menu
.dropdown-menu {
position: absolute;
top: 100%;
z-index: $zindex-dropdown;
display: none; // none by default, but block on "open" of the menu
min-width: $dropdown-min-width;
Expand All @@ -33,6 +32,7 @@
@include box-shadow($dropdown-box-shadow);

&[data-bs-popper] {
top: 100%;
left: 0;
margin-top: $dropdown-spacer;
}
Expand Down Expand Up @@ -83,15 +83,12 @@
}

.dropend {
.dropdown-menu {
.dropdown-menu[data-bs-popper] {
top: 0;
right: auto;
left: 100%;

&[data-bs-popper] {
margin-top: 0;
margin-left: $dropdown-spacer;
}
margin-top: 0;
margin-left: $dropdown-spacer;
}

.dropdown-toggle {
Expand All @@ -103,15 +100,12 @@
}

.dropstart {
.dropdown-menu {
.dropdown-menu[data-bs-popper] {
top: 0;
right: 100%;
left: auto;

&[data-bs-popper] {
margin-top: 0;
margin-right: $dropdown-spacer;
}
margin-top: 0;
margin-right: $dropdown-spacer;
}

.dropdown-toggle {
Expand Down

0 comments on commit 624f645

Please sign in to comment.