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
  • Merge requests
  • !30557

Simplify checkbox & radio input

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge master-mc-simplify-checkbox-radio into master Apr 11, 2020
  • Overview 2
  • Commits 2
  • Pipelines 0
  • Changes 2

Created by: MartijnCuppens

This PR simplifies the checkboxes a bit. A lot of properties are very unlikely to change, like background-position or background-repeat, so I think it's better to remove them from the variables file to keep things clear.

  • Define background properties in .form-check-input
  • Use background-size: contain to simplify background sizes (especially for those with linear gradients)
  • Remove double color-adjust
  • Adjust svgs to 20x20 box. This way the strokes aren't rescaled.

Also tested this with the gradients enabled.

Fixes https://github.com/twbs/bootstrap/pull/30528#issuecomment-612219215

Demo: https://deploy-preview-30557--twbs-bootstrap.netlify.com/docs/4.3/forms/checks/

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master-mc-simplify-checkbox-radio