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
  • #26695
Closed
Open
Issue created Jun 11, 2018 by Administrator@rootContributor

Inconsistency between disabled anchors

Created by: howardcox

Hi, I've noticed and was wondering whether there was a conscious decisions for:

a.btn.disabled having pointer-events: none;

https://getbootstrap.com/docs/4.1/components/buttons/#disabled-state

But anchors inside a Menu Item / split-button do not, and still have a pointer.

https://getbootstrap.com/docs/4.1/components/dropdowns/#disabled

I've also noticed that if we remove the href from an anchor (which makes the browser treat the anchor as non-interactable), the disabled style is actually overridden by:

a:not([href]):not([tabindex]) {
    color: inherit;
    text-decoration: none;
}

That's quite annoying.

I'd be happy to submit a PR to change both of these, if they weren't intentional decisions, otherwise I'll just override locally.

Examples:

http://jsfiddle.net/wxv3kbLm/

Assignee
Assign to
Time tracking