From 7fe4e4363468f18cbf5924db8da58e505657d2d5 Mon Sep 17 00:00:00 2001 From: alpadev <2838324+alpadev@users.noreply.github.com> Date: Fri, 30 Apr 2021 09:59:54 +0200 Subject: [PATCH] accordion: fix `border-top` on Firefox (#33736) Co-authored-by: XhmikosR --- scss/_accordion.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 {