From: Rohit Sharma Date: Mon, 22 Feb 2021 06:57:21 +0000 (+0530) Subject: Remove the default positioning from `.dropup` (#33120) X-Git-Tag: v5.0.0-beta3~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d983744d12be0937bb1aaef06057385d9b553e0c;p=thirdparty%2Fbootstrap.git Remove the default positioning from `.dropup` (#33120) --- diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index b71058c58e..209843facd 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 {