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
  • #21235
Closed
Open
Issue created Nov 28, 2016 by Administrator@rootContributor

Disabled buttons with .active are incorrectly styled by :hover styles

Created by: toby-howell

The following CSS is what is applied when a button.btn.btn-secondary.active[disabled] is hovered over:

.btn-secondary.disabled:hover, .btn-secondary:disabled:hover {
    background-color: #FFFFFF;
    border-color: #CCCCCC;
}

This overrides declarations applied by .active:

.btn-secondary.active, .btn-secondary:active, .open > .btn-secondary.dropdown-toggle {
    background-color: #E6E6E6;
    border-color: #ADADAD;
    /* ... */
}

This makes the button appear to be responsive to the user's interaction, despite it being disabled.

An example of the change needed is as follows:

.btn-secondary.active.disabled:hover, .btn-secondary.active:disabled:hover {
    background-color: #E6E6E6;
    border-color: #ADADAD;
}
  • Operating system: Windows 10 Pro x64
  • Browser: Chrome 54.0.2840.99 m
  • Test case and workaround: https://jsbin.com/fakejeyero

Although I used .btn-secondary as an example, this affects all similarly coloured button styles, as well as other button styles, such as outline buttons (although I have not exhaustively tested other styles). This issue was encountered in Bootstrap v4.0.0-alpha.5.

Assignee
Assign to
Time tracking