You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nested card in card groups are displayed wrong #24752
I have a card-group with nested cards in de card-body of the grouped. This nested card act like they are grouped. Nested card doesn't have a left border or no rounded corner just like the grouped cards.
Maybe adding some > to de card scss. I didn't have the time to figure out the solutions, sorry for that.
Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and OS details.
Hi @Johann-S to me this is a really good case for a child selector, since we want to select just .card child and nothing else.
The other option is to undo the styles for card-group card on nested cards which will add way more specificity and styles. I've send a PR so we can discuss more concrete ideas
Activity
jhhazelaar commentedon Nov 10, 2017
I don't think this is the best way. But for now it's a solution:
Johann-S commentedon Nov 10, 2017
Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and OS details.
jhhazelaar commentedon Nov 10, 2017
Sorry, here it is: https://codepen.io/jhhazelaar/pen/LOWWKw
Johann-S commentedon Nov 10, 2017
Can you update your CodePen to our latest release please ?
https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta.2/css/bootstrap.min.css
jhhazelaar commentedon Nov 10, 2017
Still the same issue. Sorry for the incompetence, first time creating an issue
Johann-S commentedon Nov 10, 2017
don't worry that's ok 👍
gijsbotje commentedon Nov 10, 2017
maybe using
.card-group > .cardeverywhere would be a good solution@Johann-S what'd you think?
Johann-S commentedon Nov 12, 2017
It's seems we try to avoid child selector in Bootstrap 🤔
maybe @andresgalante have ideas on how to fix that ?
andresgalante commentedon Nov 13, 2017
Thanks a lot @jhhazelaar for reporting this one.
Hi @Johann-S to me this is a really good case for a child selector, since we want to select just
.cardchild and nothing else.The other option is to undo the styles for card-group card on nested cards which will add way more specificity and styles. I've send a PR so we can discuss more concrete ideas