Skip to content

Commit

Permalink
accordion: fix border-top on Firefox (#33736)
Browse files Browse the repository at this point in the history
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
  • Loading branch information
alpadev and XhmikosR committed Apr 30, 2021
1 parent 7bbf6d9 commit 7fe4e43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scss/_accordion.scss
Expand Up @@ -58,7 +58,6 @@
}

.accordion-item {
margin-bottom: -$accordion-border-width;
background-color: $accordion-bg;
border: $accordion-border-width solid $accordion-border-color;

Expand All @@ -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 {
Expand Down

0 comments on commit 7fe4e43

Please sign in to comment.