diff options
| author | Martijn Cuppens <[email protected]> | 2019-02-03 22:07:16 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-03 23:07:16 +0200 |
| commit | d4e782efab8b8d70cd92fec6cea9578c80b0a73e (patch) | |
| tree | 9989762d34a369ed92b22e8cbf4f6f22e3548c2a /scss | |
| parent | 1275e3533637a9c47a7d257c31ae60ba812c0c59 (diff) | |
| download | bootstrap-d4e782efab8b8d70cd92fec6cea9578c80b0a73e.tar.xz bootstrap-d4e782efab8b8d70cd92fec6cea9578c80b0a73e.zip | |
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 b82eb1655..5e975c242 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 { |
