Commit 1622dcda authored by Andrei Stoicescu's avatar Andrei Stoicescu

Fix gl-dropdown components caret alignment

 - Align caret to the right of dropdowns no matter the width of
the dropdown
 - Add pseudo-element child to button so default height kicks in
parent 7f403e6a
......@@ -158,6 +158,27 @@
}
}
// Temporary hack until `gitlab-ui` issue is fixed.
// https://gitlab.com/gitlab-org/gitlab-ui/issues/164
.gl-dropdown .dropdown-menu-toggle {
.gl-dropdown-caret {
position: absolute;
right: $gl-padding-8;
top: $gl-padding-8;
}
// Add some child to the button so that the default height kicks in
// when there's no text (since the caret is now aboslute)
&::after {
border: 0;
content: ' ';
display: inline-block;
margin: 0;
padding: 0;
position: relative;
}
}
@mixin dropdown-item-hover {
background-color: $gray-darker;
color: $gl-text-color;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment