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

This commit is contained in:
Martijn Cuppens 2019-02-03 22:07:16 +01:00 committed by XhmikosR
parent 1275e35336
commit d4e782efab
1 changed files with 9 additions and 5 deletions

View File

@ -132,6 +132,9 @@
background-color: transparent; // For `<button>`s background-color: transparent; // For `<button>`s
border: 0; // For `<button>`s border: 0; // For `<button>`s
// Prevent dropdown overflow if there's no padding
// See https://github.com/twbs/bootstrap/pull/27703
@if $dropdown-padding-y == 0 {
&:first-child { &:first-child {
@include border-top-radius($dropdown-inner-border-radius); @include border-top-radius($dropdown-inner-border-radius);
} }
@ -139,6 +142,7 @@
&: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 {
color: $dropdown-link-hover-color; color: $dropdown-link-hover-color;