Skip to content
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

Accordion flush in card has missing corners on bottom #40991

Closed
3 tasks done
ianw opened this issue Oct 29, 2024 · 2 comments
Closed
3 tasks done

Accordion flush in card has missing corners on bottom #40991

ianw opened this issue Oct 29, 2024 · 2 comments
Labels

Comments

@ianw
Copy link

ianw commented Oct 29, 2024

Prerequisites

Describe the issue

When I put an accordion in flush mode inside a card the bottom is slightly broken up

Screenshot from 2024-10-29 14-10-06

Screenshot from 2024-10-29 14-10-06-2

There isn't an exact example of the accordion in a card, but there is a of flush list-group in https://getbootstrap.com/docs/5.3/components/card/ and I feel like I'm doing the same thing where you basically have the accordion after the card-header

 <div class="card">
    <div class="card-header">
         Header
     </div>
      <div class="accordion accordion-flush" id="accordionExample">
     ... accordion follows ...

I see this in Firefox and Chrome on the codepen example below

Reduced test cases

A codepen example of this is https://codepen.io/iwienand/pen/LYwdELE

What operating system(s) are you seeing the problem on?

Linux

What browser(s) are you seeing the problem on?

Chrome, Firefox

What version of Bootstrap are you using?

v5.3

@coliff
Copy link
Contributor

coliff commented Nov 1, 2024

Cards have border-radius by default so I'd suggest simply adding the 'rounded-0' utility class to the .card to fix it.

@julien-deramond
Copy link
Member

Cards have border-radius by default so I'd suggest simply adding the 'rounded-0' utility class to the .card to fix it.

Thanks, coliff! This is definitely the way to go. Since a card is treated as a simple container, the framework doesn't apply special CSS for handling specific combinations of components within the card.
I'm closing this issue.

@julien-deramond julien-deramond closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2024
@github-project-automation github-project-automation bot moved this from To analyze to Done in v5.3.4 Nov 1, 2024
@julien-deramond julien-deramond removed this from v5.3.4 Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants