Skip to content

Commit

Permalink
fix(tooltip): fix arrow positioning in Bootstrap beta.3
Browse files Browse the repository at this point in the history
Fixes #2067
  • Loading branch information
pkozlowski-opensource committed Jan 5, 2018
1 parent 20ba716 commit de56f10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let nextId = 0;
template: `<div class="arrow"></div><div class="tooltip-inner"><ng-content></ng-content></div>`,
styles: [`
:host.bs-tooltip-top .arrow, :host.bs-tooltip-bottom .arrow {
left: 50%;
left: calc(50% - 0.4rem);
}
:host.bs-tooltip-top-left .arrow, :host.bs-tooltip-bottom-left .arrow {
Expand All @@ -43,20 +43,20 @@ let nextId = 0;
:host.bs-tooltip-top-right .arrow, :host.bs-tooltip-bottom-right .arrow {
left: auto;
right: 1em;
right: 0.8rem;
}
:host.bs-tooltip-left .arrow, :host.bs-tooltip-right .arrow {
top: 50%;
top: calc(50% - 0.4rem);
}
:host.bs-tooltip-left-top .arrow, :host.bs-tooltip-right-top .arrow {
top: 0.7em;
top: 0.4rem;
}
:host.bs-tooltip-left-bottom .arrow, :host.bs-tooltip-right-bottom .arrow {
top: auto;
bottom: 0.7em;
bottom: 0.4rem;
}
`]
})
Expand Down

0 comments on commit de56f10

Please sign in to comment.