Skip to content

Commit

Permalink
fix(tooltip): fix arrow position for bottom center
Browse files Browse the repository at this point in the history
The Fix from #1801 was basically correct, however the specificity for transform-origin in later selectors override it, so the result was even worse
  • Loading branch information
lubber-de committed Jul 21, 2021
1 parent 1871d28 commit c65b85c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/definitions/modules/popup.less
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@
left: 50%;
margin-left: @tooltipArrowHorizontalOffset;
margin-top: -@arrowOffset;
transform-origin: center top;
}
}
& when (@variationPopupLeft) {
Expand Down Expand Up @@ -448,6 +447,11 @@
}
}
& when (@variationPopupCenter) {
& when (@variationPopupBottom) {
[data-position="bottom center"][data-tooltip]:before {
transform-origin: center top;
}
}
& when (@variationPopupLeft) {
[data-position="left center"][data-tooltip]:before {
transform-origin: top center;
Expand Down

0 comments on commit c65b85c

Please sign in to comment.