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
  • #32857
Closed
Open
Issue created Jan 20, 2021 by Administrator@rootContributor

[v5] form-check-input inside input-group-text is not vertically centered

Created by: bggardner

  • Operating system and version: Ubuntu 20.10 and Windows 10
  • Browser and version: Chrome 87 and Firefox 84
  • Compare:
    • v5.0: https://getbootstrap.com/docs/5.0/forms/input-group/#checkboxes-and-radios
    • v4.6: https://getbootstrap.com/docs/4.6/components/input-group/#checkboxes-and-radios

In v5.0, checkboxes and radios inside .input-group-text elements appear too low (not vertically centered) due to margin-top: .25em set by .form-check-input. v4.6 has:

.input-group-text input[type=checkbox, .input-group-text input[type=radio] { margin-top: 0; }

The fix would be to add either the same as v4.6 or .input-group-text .form-check-input { margin-top: 0; }

Assignee
Assign to
Time tracking