diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2019-02-04 00:07:16 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-02-04 00:07:16 +0300 |
commit | d4e782efab8b8d70cd92fec6cea9578c80b0a73e (patch) | |
tree | 9989762d34a369ed92b22e8cbf4f6f22e3548c2a /scss | |
parent | 1275e3533637a9c47a7d257c31ae60ba812c0c59 (diff) |
Fix dropdown radius if `$dropdown-padding-y` is not 0 (#28127)
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_dropdown.scss | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index b82eb1655a..5e975c242b 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -132,12 +132,16 @@ background-color: transparent; // For `<button>`s border: 0; // For `<button>`s - &:first-child { - @include border-top-radius($dropdown-inner-border-radius); - } + // Prevent dropdown overflow if there's no padding + // 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 { - @include border-bottom-radius($dropdown-inner-border-radius); + &:last-child { + @include border-bottom-radius($dropdown-inner-border-radius); + } } @include hover-focus { |