From: alpadev <2838324+alpadev@users.noreply.github.com> Date: Fri, 30 Apr 2021 07:59:54 +0000 (+0200) Subject: accordion: fix `border-top` on Firefox (#33736) X-Git-Tag: v5.0.0~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7fe4e4363468f18cbf5924db8da58e505657d2d5;p=thirdparty%2Fbootstrap.git accordion: fix `border-top` on Firefox (#33736) Co-authored-by: XhmikosR --- diff --git a/scss/_accordion.scss b/scss/_accordion.scss index ae1ca0fbb7..fc62ceb882 100644 --- a/scss/_accordion.scss +++ b/scss/_accordion.scss @@ -58,7 +58,6 @@ } .accordion-item { - margin-bottom: -$accordion-border-width; background-color: $accordion-bg; border: $accordion-border-width solid $accordion-border-color; @@ -70,9 +69,12 @@ } } + &:not(:first-of-type) { + border-top: 0; + } + // Only set a border-radius on the last item if the accordion is collapsed &:last-of-type { - margin-bottom: 0; @include border-bottom-radius($accordion-border-radius); .accordion-button {