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

[v4] <hr> not visible in Cards #23032

Closed
bradleygauthier opened this issue Jul 9, 2017 · 2 comments
Closed

[v4] <hr> not visible in Cards #23032

bradleygauthier opened this issue Jul 9, 2017 · 2 comments

Comments

@bradleygauthier
Copy link

When adding an <hr> inside a .card, the line does not appear. I believe this may be a bug.

The only way I found to make it appear, is by adding width: 100%; to the <hr>. But this doesn't seem like an intended feature.

@mdo
Copy link
Member

mdo commented Jul 10, 2017

Note for future me or someone who wants to fix this—probably the flex styles interfering.

@prateekgoel
Copy link
Contributor

prateekgoel commented Jul 10, 2017

I did some research on this and found this:
https://stackoverflow.com/questions/34365271/hr-inside-container-with-display-flex-become-corrupted/34372979#34372979

Adding some margin left and right seems to fix this issue.

We can either add margin-left:0; and margin-right:0; or margin-left:1rem; and margin-right:1rem;

@mdo I would like to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants