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
list-group-flush not working on Bootstrap 4.5.0 #30821
Comments
I wonder if it's the same root cause as #30793. @twbs/css-review |
Same root cause indeed. However it's worth mentionning that this use case is very wrong: using anything else than FWIW, fixing this makes the result a lot closer from each other: So I think this should not be considered as a valid use case for this regression. I'd recommend working with our You'll notice I also set |
Your call how to handle the issue @ffoodd 🙂 |
@xalvarez FWIW a regression is already identified, so there will be a fix of some kind but I can't assure you it'll fix your use case. Does my suggestion works for you? |
@ffoodd sounds great, thanks for your help & feedback! |
Looks like there's still an issue where the list-group is the last element in a card, then it is missing the bottom border. |
Can you share a reduced test case? |
Hmm, looks like it was some supporting css that interfered. |
I've just upgraded from Bootstrap 4.4.1 to 4.5.0 and realized that
list-group-flush
no longer seems to always work properly.To I've created an example list to showcase this problem and this is the result:
Bootstrap 4.4.1: https://codepen.io/xalvarez/pen/vYNzNmE
Bootstrap 4.5.0: https://codepen.io/xalvarez/pen/dyYqYNx
As you can see, on bootstrap 4.5.0 a border is shown, which I wouldn't expect to see when using
list-group-flush
.I'm using a
label
to wrap eachli
so that the whole row element is clickable and I don't need to exactly click on the radio button. Removing thislabel
solves the problem with the border, but I don't really know why, as the css classes associated withlabel
don't seem to have any effect on the border.This is the workaround I've implemented:
The text was updated successfully, but these errors were encountered: