Skip to content

Commit

Permalink
Resolve flipped tooltip horizontal positioning
Browse files Browse the repository at this point in the history
#fix
  • Loading branch information
aduth committed May 26, 2017
1 parent e2206d3 commit 039ca08
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/popover/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,16 @@
}

&.is-left {
left: 0;
margin-left: -6px;
left: 100%;
transform: translateX( -100% );
margin-left: 6px;

&::before {
left: 10px;
right: 10px;
}

&::after {
left: 11px;
right: 11px;
}
}

Expand All @@ -96,16 +97,15 @@
}

&.is-right {
left: 100%;
transform: translateX( -100% );
margin-left: 6px;
left: 0;
margin-left: -6px;

&::before {
right: 10px;
left: 10px;
}

&::after {
right: 11px;
left: 11px;
}
}
}

0 comments on commit 039ca08

Please sign in to comment.