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
I propose we change the & in scss/_list-group-item.scss to .list-group-item
// ...& + & { // The Issue would be here to change the second "&" to ".list-group-item"border-top-width: 0;
&.active {
margin-top: calc(var(--#{$prefix}list-group-border-width) *-1); // stylelint-disable-line function-disallowed-listborder-top-width: var(--#{$prefix}list-group-border-width);
}
}
Fwiw, there are other instances of ... + & { } in our codebase. Unsure if we feel the need to revisit all these selectors now, just some, or if we keep things as-is. Thoughts @julien-deramond?
Prerequisites
Describe the issue
Context
When using list-groups nested inside another class for exemple:
The list-group-items do not behave correctly especially for borders (see code pen)
Cause
This is due to
.list-group-item
using a& + &
selector. exemple:compiles to:
What we want
I propose we change the
&
inscss/_list-group-item.scss
to.list-group-item
compiled
Reduced test cases
https://codepen.io/Hadouin/pen/KKopyrW
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.2.0-beta1
The text was updated successfully, but these errors were encountered: