Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #25546
Closed
Open
Issue created Feb 04, 2018 by Administrator@rootContributor5 of 5 checklist items completed5/5 checklist items

Example docs usage of `form-check` requires `form-group`

Created by: 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:

  • Search for duplicate or closed issues
  • Validate and lint any HTML to avoid common problems
  • Prepare a reduced test case for any bugs

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
Assignee
Assign to
Time tracking