Skip to content

Commit

Permalink
feat: add workaround from heartcombo/simple_form-bootstrap#329
Browse files Browse the repository at this point in the history
  • Loading branch information
woto committed May 8, 2021
1 parent 33e93f1 commit c737286
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/javascript/stylesheets/bootstrap_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,14 @@ aside {
border: 1px solid rgba(101, 109, 119, 0.24) !important;
}
}

// In bootstrap 5 legend floats left and requires the following element
// to be cleared. In a radio button or checkbox group the element after
// the legend will be the automatically generated hidden input; the fix
// in https://github.com/twbs/bootstrap/pull/30345 applies to the hidden
// input and has no visual effect. Here we try to fix matters by
// applying the clear to the div wrapping the first following radio button
// or checkbox.
legend ~ div.form-check:first-of-type {
clear: left;
}

0 comments on commit c737286

Please sign in to comment.