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
  • #15737
Closed
Open
Issue created Feb 03, 2015 by Administrator@rootContributor

Tooltip on disabled elements and btn-group

Created by: Adysone

Hi, I saw so many issues with that, but the only way to do it is to wrap the disabled element with a <div> (or a <span>, it can work).

BUT!

I would like to put it on a btn wrapped by a btn-group and wrap my disabled element by a span breaks the CSS...

Within a <div>

<div class="btn-group">
    <a href="#href" class="btn btn-default" data-toggle="tooltip" title="The tooltip title">
        <i class="fa fa-edit"></i>
    </a>
    <div data-toggle="tooltip" title="The tooltip title">
        <a href="#href_disabled" class="btn btn-default disabled">
            <i class="fa fa-remove"></i>
        </a>
    </div>
</div>

image

Within a <span>

<div class="btn-group">
    <a href="#href" class="btn btn-default" data-toggle="tooltip" title="The tooltip title">
        <i class="fa fa-edit"></i>
    </a>
    <span data-toggle="tooltip" title="The tooltip title">
        <a href="#href_disabled" class="btn btn-default disabled">
            <i class="fa fa-remove"></i>
        </a>
    </span>
</div>

image

Without a wrapper, but tooltip doesn't show up

<a href="##" class="btn btn-default disabled" data-toggle="tooltip" title="Impossible de supprimer cette variété car elle contient des données"><i class="fa fa-remove"></i></a>

image

Assignee
Assign to
Time tracking