SwatiBhalla
SwatiBhalla

Reputation: 39

ngbTooltip css not getting applied

I am using ngbTooltip component of @ng-bootstrap/ng-bootstrap library. Although the tooltip appears but it seems css is not getting applied. Library version: "@ng-bootstrap/ng-bootstrap": "^13.1.1"

    <input type="password" [ngbTooltip]="passTooltip" placement="end"/>
    
    <ng-template #passTooltip>
    <div>Password Tooltip</div>
    <ng-template>

Upvotes: 0

Views: 75

Answers (1)

Jye
Jye

Reputation: 71

If you mean that custom css is not being applied, have a look at this stackblitz that I simplified from the ng-bootstrap docs. It shows how to add custom styles to a tooltip.

If you mean that no css at all is applied, your ng-bootstrap or bootstrap is not included correctly.

Upvotes: 0

Related Questions