Skip to content

Commit 99e6f1c

Browse files
author
gijsroge
committed
Remove overflow hidden to support position sticky inside accordions. Fixes twbs#28873
Also fixes twbs#28134 as we move the border from the header to the body and no longer have a overlapping issue of the header bottom.
1 parent 9881311 commit 99e6f1c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scss/_accordion.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
margin-bottom: -$accordion-border-width;
88
color: $accordion-header-color;
99
background-color: $accordion-header-bg;
10-
border-bottom: $accordion-border-width solid $accordion-border-color;
1110
@include border-radius(0);
1211
}
1312

14-
.accordion-item{
15-
overflow: hidden;
13+
.accordion-item {
1614
border: $accordion-border-width solid $accordion-border-color;
1715
@include border-radius($accordion-border-radius);
1816

@@ -25,11 +23,12 @@
2523
@include border-top-radius(0);
2624
}
2725

28-
&:not(:last-child){
26+
&:not(:last-child) {
2927
border-bottom: none;
3028
}
3129
}
3230

33-
.accordion-body{
31+
.accordion-body {
3432
padding: $accordion-body-padding-y $accordion-body-padding-x;
33+
border-top: $accordion-border-width solid $accordion-border-color;
3534
}

0 commit comments

Comments
 (0)