Skip to content

Commit 7fe4e43

Browse files
alpadevXhmikosR
andauthored
accordion: fix border-top on Firefox (#33736)
Co-authored-by: XhmikosR <[email protected]>
1 parent 7bbf6d9 commit 7fe4e43

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scss/_accordion.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
}
5959

6060
.accordion-item {
61-
margin-bottom: -$accordion-border-width;
6261
background-color: $accordion-bg;
6362
border: $accordion-border-width solid $accordion-border-color;
6463

@@ -70,9 +69,12 @@
7069
}
7170
}
7271

72+
&:not(:first-of-type) {
73+
border-top: 0;
74+
}
75+
7376
// Only set a border-radius on the last item if the accordion is collapsed
7477
&:last-of-type {
75-
margin-bottom: 0;
7678
@include border-bottom-radius($accordion-border-radius);
7779

7880
.accordion-button {

0 commit comments

Comments
 (0)