Skip to content

Commit a9e7abd

Browse files
committed
Fix caret position for Dropdown in a bottom navbar
1 parent 1011297 commit a9e7abd

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

scss/_navbar.scss

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,10 @@
7575
float: none;
7676
}
7777

78-
.dropup {
79-
.dropdown-menu {
80-
position: absolute;
81-
top: auto;
82-
bottom: 100%;
78+
.dropdown-toggle {
79+
&::after {
80+
border-top: $caret-width solid;
81+
border-bottom: 0;
8382
}
8483
}
8584
}
@@ -152,6 +151,18 @@
152151
padding-right: 0;
153152
padding-left: 0;
154153
}
154+
155+
.dropup {
156+
.dropdown-menu {
157+
position: absolute;
158+
top: auto;
159+
bottom: 100%;
160+
}
161+
162+
.dropdown-toggle {
163+
@include caret(up);
164+
}
165+
}
155166
}
156167

157168
@include media-breakpoint-up($next) {

0 commit comments

Comments
 (0)