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

Double bottom border: Card with .card-header + .list-group #21609

Closed
hiddewie opened this issue Jan 8, 2017 · 4 comments
Closed

Double bottom border: Card with .card-header + .list-group #21609

hiddewie opened this issue Jan 8, 2017 · 4 comments
Labels

Comments

@hiddewie
Copy link

hiddewie commented Jan 8, 2017

When making a card and using a .card-header with a .list-group, a double border is present (bottom of the header and top of the list group). I think this is not intended.

As far as I've seen this has been a problem since BS 4 alpha-5.

HTML:

<div class="card">
  <h3 class="card-header">Test header</h3>
  <ul class="list-group list-group-flush">
    <li class="list-group-item justify-content-between">
      Some content
    </li>
    <li class="list-group-item justify-content-between">
      Some content
    </li>
  </ul>
</div>

Screenshot:

capture

Details

Operating system: Windows 10
Browser: Chrome 55.0.2883.87 m (Also validated on Firefox 50.1.0 and Opera 42.0.2393.94)
Test case: http://www.bootply.com/ZkNFalLacR

@psorensen
Copy link

psorensen commented Jan 11, 2017

@hiddewie One possible solution:

.card-header + .list-group .list-group-item:first-of-type {
  border-top: none;
}
.card-header + .list-group .list-group-item:last-of-type {
  border-bottom: none;
}

@Starsam80
Copy link
Contributor

Ref: #19047

@mdo mdo added this to the v4.0.0-beta.2 milestone Mar 28, 2017
@martinbean
Copy link
Contributor

@mdo Is this being addressed? Just ran into this issue myself.

@mdo mdo removed this from the v4.0.0-beta.2 milestone Jun 18, 2017
@mdo mdo mentioned this issue Aug 20, 2017
@hiddewie
Copy link
Author

Thank you @mdo and @gijsbotje!

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

6 participants