]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
accordion: fix `border-top` on Firefox (#33736)
authoralpadev <2838324+alpadev@users.noreply.github.com>
Fri, 30 Apr 2021 07:59:54 +0000 (09:59 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Apr 2021 07:59:54 +0000 (10:59 +0300)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
scss/_accordion.scss

index ae1ca0fbb73564a6aa4c5528de8882f37ccbcae9..fc62ceb88255c01cf964b16d49ec3f232d4a34f2 100644 (file)
@@ -58,7 +58,6 @@
 }
 
 .accordion-item {
-  margin-bottom: -$accordion-border-width;
   background-color: $accordion-bg;
   border: $accordion-border-width solid $accordion-border-color;
 
     }
   }
 
+  &: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 {