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
  • !31651

Fix disabled checkbox toggle buttons

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/Psixodelik/disabled-toggle-buttons-fix into main Sep 14, 2020
  • Overview 2
  • Commits 4
  • Pipelines 0
  • Changes 3

Created by: Psixodelik

Hi

Fixed a bug from issue #31355 (closed)

For convenience of managing the state "disabled" added variables to _variables.scss.

$form-check-input-disabled-opacity - the default opacity for input with the form-check-input class

$form-check-label-disabled-opacity - The opacity value for the label. By default copies the value from $ form-check-input-disabled-opacity

$form-check-btn-check-disabled-opacity - The opacity value for the checkbox toggle buttons. By default takes the opacity value for disabled button

Solved with a selector + because the order of input and label should not change

Demo: https://deploy-preview-31651--twbs-bootstrap.netlify.app/docs/5.0/forms/checks-radios/

Fixes #31355 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Psixodelik/disabled-toggle-buttons-fix