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

Move z-index from .list-group-item to .list-group-item-action #27996

Merged
merged 2 commits into from
Jan 8, 2019

Conversation

ysds
Copy link
Contributor

@ysds ysds commented Jan 7, 2019

It is more make sense if z-index is defined to .list-group-item-action not .list-group-item.

And remove redundant text-decoration: none;

This fixes #25446, hopefully also #25206.

@ysds ysds requested a review from a team as a code owner January 7, 2019 15:35
@mdo
Copy link
Member

mdo commented Jan 7, 2019

z-index: 1 is there to ensure that each subsequent list group item lays above the previous—that way the borders overlap as intended. Probably fine like this, too, but we should confirm no adverse affects to the standard items.

@ysds
Copy link
Contributor Author

ysds commented Jan 7, 2019

Before: https://codepen.io/anon/pen/ebrqWJ
After: https://codepen.io/anon/pen/jXxjOY

Based on my experience working on z-index of bootstrap, seems fine to me I think, but would like feedback and more test case.

@MartijnCuppens
Copy link
Member

Here's another testcase with links, which looks fine:
https://codepen.io/MartijnCuppens/pen/aPKzyp?editors=1100

Copy link
Member

@MartijnCuppens MartijnCuppens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't find anything that could go wrong.

@mdo mdo mentioned this pull request Jan 8, 2019
@XhmikosR XhmikosR merged commit dc43642 into twbs:v4-dev Jan 8, 2019
@ysds ysds deleted the patch-1 branch January 8, 2019 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants