Skip to content

Commit f640ec9

Browse files
zalogmdo
authored andcommitted
Some .navbar .dropdown-menu optimisation (twbs#22776)
1 parent af93db2 commit f640ec9

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

js/src/dropdown.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -251,21 +251,6 @@ const Dropdown = (($) => {
251251
return $(this._element).closest('.navbar').length > 0
252252
}
253253

254-
_navbarPositioning() {
255-
const $parentNavbar = $(this._element).closest('.navbar')
256-
if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
257-
if (!$parentNavbar.hasClass('navbar-expand')) {
258-
return {
259-
position: 'static',
260-
transform: '',
261-
float: 'none'
262-
}
263-
}
264-
}
265-
266-
return {}
267-
}
268-
269254
_getPopperConfig() {
270255
const popperConfig = {
271256
placement : this._getPlacement(),

scss/_navbar.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,6 @@
141141

142142
&#{$infix} {
143143
@include media-breakpoint-down($breakpoint) {
144-
.navbar-nav {
145-
.dropdown-menu {
146-
position: static;
147-
float: none;
148-
}
149-
}
150-
151144
> .container,
152145
> .container-fluid {
153146
padding-right: 0;
@@ -172,11 +165,6 @@
172165
left: auto; // Reset the default from `.dropdown-menu`
173166
}
174167

175-
.dropdown-menu-left {
176-
right: auto;
177-
left: 0;
178-
}
179-
180168
.nav-link {
181169
padding-right: .5rem;
182170
padding-left: .5rem;

0 commit comments

Comments
 (0)