Skip to content

Commit

Permalink
fix(popover & tooltip): fix arrow position (#3405)
Browse files Browse the repository at this point in the history
fix(popover): fix arrow position
  • Loading branch information
IlyaSurmay authored and valorkin committed Jan 5, 2018
1 parent eaed118 commit 15ae2f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/popover/popover-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import { isBs3 } from '../utils/theme-provider';
styles: [
`
:host.bs-popover-top .arrow, :host.bs-popover-bottom .arrow {
left: calc(50% - 5px);
left: 50%;
}
:host.bs-popover-left .arrow, :host.bs-popover-right .arrow {
top: calc(50% - 2.5px);
top: 50%;
}
`
],
Expand Down
4 changes: 2 additions & 2 deletions src/tooltip/tooltip-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import { isBs3 } from '../utils/theme-provider';
display: block;
}
:host.bs-tooltip-top .arrow, :host.bs-tooltip-bottom .arrow {
left: calc(50% - 2.5px);
left: 50%;
}
:host.bs-tooltip-left .arrow, :host.bs-tooltip-right .arrow {
top: calc(50% - 2.5px);
top: 50%;
}
`
],
Expand Down

0 comments on commit 15ae2f0

Please sign in to comment.