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
  • #14882
Closed
Open
Issue created Oct 27, 2014 by Administrator@rootContributor

Disabled buttons inconsistent across browsers

Created by: JasperHorn

A disabled button looks partially transparent on Firefox, Chrome and IE 11 and has nothing special going on when you move the mouse over it. In IE 10 (and below, I guess) though it looks the same initially, it has an effect on mouseover: the cursor changes to not-allowed.

The culprit is in buttons.less:

.btn
{
  // [..]
  &.disabled,
  &[disabled],
  fieldset[disabled] & {
    cursor: not-allowed;
    background-color: @btn-default-color;
    pointer-events: none; // Future-proof disabling of clicks
    .opacity(.65);
    .box-shadow(none);
  }
}

IE 10 doesn't support pointer-events, so the changes that are prevented on future-proof browsers aren't on IE 10. A simple fix would be to remove the cursor statement, which is negated by the pointer-events anyway:

.btn
{
  // [..]
  &.disabled,
  &[disabled],
  fieldset[disabled] & {
    background-color: @btn-default-color;
    pointer-events: none; // Future-proof disabling of clicks
    .opacity(.65);
    .box-shadow(none);
  }
}
Assignee
Assign to
Time tracking