Skip to content

Commit 3f7665b

Browse files
committed
fix: remove dropdown menu margin to prevent Popper warnings
1 parent 9912ada commit 3f7665b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scss/_dropdown.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
float: left;
2424
min-width: $dropdown-min-width;
2525
padding: $dropdown-padding-y 0;
26-
margin: $dropdown-spacer 0 0; // override default ul
2726
@include font-size($dropdown-font-size);
2827
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
2928
list-style: none;
@@ -40,6 +39,10 @@
4039
@include elevation(4);
4140
}
4241

42+
[data-display^="static"] ~ .dropdown-menu {
43+
margin: $dropdown-spacer 0 0; // override default ul
44+
}
45+
4346
@each $breakpoint in map-keys($grid-breakpoints) {
4447
@include media-breakpoint-up($breakpoint) {
4548
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);

0 commit comments

Comments
 (0)