-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Border Bottom in Accordion First Item #27124
Comments
I believe it is technically not an accordion when using just a single item, you can fix this by just using the collapse class without the accordion: https://www.bootply.com/wpXTWhpi7V |
@royklutman, your solution/example isn't 100% bulletproof. If you look closely (zoom in), you can easily see a double border at the bottom: However I can see this has already been raised as an issue: #27108 I'm sure that the fix is quite small and it would be cool if it was corrected in 4.2 :-) |
@royklutman Actually my accordion is dynamic items can b single or multiple |
@ismailfarooq Ah, that makes sense. If you are using plain CSS, add these lines: .accordion .card {
overflow: hidden;
}
.accordion .card-header {
margin-bottom: -1px;
} If you are using SCSS and build Bootstrap yourself, add this to your custom SCSS: .accordion {
.card {
overflow: hidden;
}
.card-header {
margin-bottom: -1px;
}
} This will fix your issue, the proposed fix is in PR #27133. |
Found a solution on my own. the rest is pretty straightforward, you just need to add a css rule:
|
There is no Border Bottom if Accordion has only single Item
https://www.bootply.com/vB8GoWkFz3
The text was updated successfully, but these errors were encountered: