From c7d0cb2afc0f92bbd0d4bb77f025c04e0104e434 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 26 May 2022 14:40:19 -0700 Subject: [PATCH] Fix .dropdown-item border-radius when -padding-y is 0 --- scss/_dropdown.scss | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index d4be30eeafef..62125b96783a 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -66,6 +66,18 @@ left: 0; margin-top: var(--#{$prefix}dropdown-spacer); } + + @if $dropdown-padding-y == 0 { + > .dropdown-item:first-child, + > li:first-child .dropdown-item { + @include border-top-radius(var(--#{$prefix}dropdown-inner-border-radius)); + } + > .dropdown-item:last-child, + > li:last-child .dropdown-item { + @include border-bottom-radius(var(--#{$prefix}dropdown-inner-border-radius)); + } + + } } // scss-docs-start responsive-breakpoints @@ -172,18 +184,6 @@ background-color: transparent; // For `