Skip to content

Commit c737286

Browse files
committed
feat: add workaround from heartcombo/simple_form-bootstrap#329
1 parent 33e93f1 commit c737286

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/javascript/stylesheets/bootstrap_overrides.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,14 @@ aside {
8282
border: 1px solid rgba(101, 109, 119, 0.24) !important;
8383
}
8484
}
85+
86+
// In bootstrap 5 legend floats left and requires the following element
87+
// to be cleared. In a radio button or checkbox group the element after
88+
// the legend will be the automatically generated hidden input; the fix
89+
// in https://github.com/twbs/bootstrap/pull/30345 applies to the hidden
90+
// input and has no visual effect. Here we try to fix matters by
91+
// applying the clear to the div wrapping the first following radio button
92+
// or checkbox.
93+
legend ~ div.form-check:first-of-type {
94+
clear: left;
95+
}

0 commit comments

Comments
 (0)