Commit d4e782ef authored by Martijn Cuppens's avatar Martijn Cuppens Committed by XhmikosR
Browse files

Fix dropdown radius if `$dropdown-padding-y` is not 0 (#28127)

parent 1275e353
1 merge request!28721Hot test
Showing with 9 additions and 5 deletions
+9 -5
...@@ -132,12 +132,16 @@ ...@@ -132,12 +132,16 @@
background-color: transparent; // For `<button>`s background-color: transparent; // For `<button>`s
border: 0; // For `<button>`s border: 0; // For `<button>`s
&:first-child { // Prevent dropdown overflow if there's no padding
@include border-top-radius($dropdown-inner-border-radius); // See https://github.com/twbs/bootstrap/pull/27703
} @if $dropdown-padding-y == 0 {
&:first-child {
@include border-top-radius($dropdown-inner-border-radius);
}
&:last-child { &:last-child {
@include border-bottom-radius($dropdown-inner-border-radius); @include border-bottom-radius($dropdown-inner-border-radius);
}
} }
@include hover-focus { @include hover-focus {
......
Supports Markdown
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