Skip to content

Commit

Permalink
fix(popup): tooltips don't work on safari <= 12.1
Browse files Browse the repository at this point in the history
Safari up to 12.1 has a bug to sometimes not work when transition: all is used .
This leads into tooltips not working
  • Loading branch information
lubber-de authored and Sean committed Dec 22, 2019
1 parent de0e2b8 commit dde63c4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/definitions/modules/popup.less
Original file line number Diff line number Diff line change
Expand Up @@ -149,30 +149,27 @@
[data-tooltip]:after {
pointer-events: none;
visibility: hidden;
opacity: 0;
transition:
transform @tooltipDuration @tooltipEasing,
opacity @tooltipDuration @tooltipEasing
;
}
[data-tooltip]:before {
opacity: 0;
transform: rotate(45deg) scale(0) !important;
transform-origin: center top;
transition:
all @tooltipDuration @tooltipEasing
;
}
[data-tooltip]:after {
opacity: 1;
transform-origin: center bottom;
transition:
all @tooltipDuration @tooltipEasing
;
}
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
visibility: visible;
pointer-events: auto;
opacity: 1;
}
[data-tooltip]:hover:before {
transform: rotate(45deg) scale(1) !important;
opacity: 1;
}

/* Animation Position */
Expand Down

0 comments on commit dde63c4

Please sign in to comment.