Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip breaks Bootstrap Button Groups? #228

Open
NikBisht opened this issue Mar 2, 2018 · 2 comments
Open

Tooltip breaks Bootstrap Button Groups? #228

NikBisht opened this issue Mar 2, 2018 · 2 comments

Comments

@NikBisht
Copy link

NikBisht commented Mar 2, 2018

I would like to use Angular-tooltips with bootstrap buttons, but when I wrap each button with an Angular-tooltip, the button group breaks. I end up with individual buttons and broken styles. I then added the tooltip to the button tag itself to no avail. I also tried adding tooltip-append-to-body="true" also to no avail. How do we keep the button group styling with angular tooltip?

    <!-- Displaying primary buttons -->
    <button type="button" tooltips tooltip-template="tooltipText" tooltip-append-to-body="true" ng-repeat="button in primaryButtons" class="btn btn-default main-btn">{{button.title}}</button>
    <!-- Display dropdown -->
    <button type="button" class="btn btn-default dropdown-btn dropdown-toggle" role="menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <span class="caret"></span>
    </button>
    <ul class="dropdown-menu">
        <li ng-repeat="button in secondaryButtons" role="menuitem"><a>{{button.title}}</a></li>
    </ul>
</div>`
@clizSec
Copy link

clizSec commented May 14, 2018

Happens to me too.
Not only on bootstrap buttons.

@clizSec
Copy link

clizSec commented May 14, 2018

tooltip._multiline set to "display:block", changing it to inline-block or removing it solve the issue, but I didn't tested for any other issues regard that fix.

Add the following to your CSS code:

tooltip._multiline {
    display: inline-block !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants