From: mscdex Date: Wed, 9 Apr 2025 17:52:24 +0000 (-0400) Subject: Limit selectors in `.card-group` to immediate children to fix `border-radius` bug... X-Git-Tag: v5.3.6~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9cb0d679c174a770da7268e92ca43d66f068634;p=thirdparty%2Fbootstrap.git Limit selectors in `.card-group` to immediate children to fix `border-radius` bug (#41298) --- diff --git a/scss/_card.scss b/scss/_card.scss index a5c122925a..dcebe6ac28 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -206,13 +206,13 @@ &:not(:last-child) { @include border-end-radius(0); - .card-img-top, - .card-header { + > .card-img-top, + > .card-header { // stylelint-disable-next-line property-disallowed-list border-top-right-radius: 0; } - .card-img-bottom, - .card-footer { + > .card-img-bottom, + > .card-footer { // stylelint-disable-next-line property-disallowed-list border-bottom-right-radius: 0; } @@ -221,13 +221,13 @@ &:not(:first-child) { @include border-start-radius(0); - .card-img-top, - .card-header { + > .card-img-top, + > .card-header { // stylelint-disable-next-line property-disallowed-list border-top-left-radius: 0; } - .card-img-bottom, - .card-footer { + > .card-img-bottom, + > .card-footer { // stylelint-disable-next-line property-disallowed-list border-bottom-left-radius: 0; }