diff options
| author | Rohit Sharma <[email protected]> | 2021-02-22 12:27:21 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-22 08:57:21 +0200 |
| commit | d983744d12be0937bb1aaef06057385d9b553e0c (patch) | |
| tree | f180970a16a93a6bd598ace9a82598d432401b26 | |
| parent | 489e7b6798b817430b8e6d4d9ab57bd3bf45f335 (diff) | |
| download | bootstrap-d983744d12be0937bb1aaef06057385d9b553e0c.tar.xz bootstrap-d983744d12be0937bb1aaef06057385d9b553e0c.zip | |
Remove the default positioning from `.dropup` (#33120)
| -rw-r--r-- | scss/_dropdown.scss | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index b71058c58..209843fac 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -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 { |
