Skip to content

Example docs usage of form-check requires form-group #25546

@peterblazejewicz

Description

@peterblazejewicz

Hello,

I'm under impression the sample form markup in the docs needs a correction here:

http://getbootstrap.com/docs/4.0/components/forms/

<div class="form-check">
    <input type="checkbox" class="form-check-input" id="exampleCheck1">
    <label class="form-check-label" for="exampleCheck1">Check me out</label>
</div>

The problem with sample snippet is that AFAIK the form-check improves rendering of custom checkbox control but not a layout within a form. So I think it should be supported by a form-group to both layout a group and customer control:

<div class="from-group form-check">
    <input type="checkbox" class="form-check-input" id="exampleCheck1">
    <label class="form-check-label" for="exampleCheck1">Check me out</label>
</div>

Sample in CodePen:
https://codepen.io/blazejewicz/pen/YeqEPR

Thanks!

Before opening an issue:

When suggesting a feature, include:

  • As much detail as possible for what we should add and why it's important to Bootstrap
  • Relevant links to prior art, screenshots, or live demos whenever possible

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions