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
  • #18176
Closed
Open
Issue created Nov 05, 2015 by Administrator@rootContributor

Add utility class for user-select:none ?

Created by: adelivuk-zz

Is there a reason why the text selection isn't disabled on the .checkbox label element? It's kind of annoying when you're clicking fast on the element, see the image:

screen shot 2015-11-05 at 13 56 04

Adding these styles fixes the issue:

.checkbox label{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

Or maybe creating, for example, a .disable-user-select class, like:

.disable-user-select{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
<div class="checkbox">
    <label class="disable-user-select">
        <input type="checkbox"> Check me out
    </label>
</div>

However, I've noticed that you using the user-select style on the .btn class. Should I add .btn class to the .checkbox label element? Is that the "bootstrap" way for dealing with it?

<div class="checkbox">
    <label class="btn">
        <input type="checkbox"> Check me out
    </label>
</div>
Assignee
Assign to
Time tracking