Tooltip typography is now included by default, and no longer inherits typography from its container. Confirm tooltip typography is correct for your project. If possible remove custom CSS which sets tooltip typography.
- The
oTooltip
mixin now includes all styles required for tooltips. See the Sass documentation for information on the new parameters - The following mixins have been removed:
oTooltipContent
oTooltipUpArrow
oTooltipDownArrow
oTooltipLeftArrow
oTooltipRightArrow
oTooltipClose
- The following global variables have been removed:
$o-tooltip-animation-distance
$o-tooltip-animation-duration
v5 uses ES Modules over CommonJS syntax. We recommend to include o-tooltip
using the es modules syntax.
-const Tooltip = require('o-tooltip');
+import Tooltip from 'o-tooltip';
However to use the CommonJS syntax, without a plugin like babel-plugin-transform-es2015-modules-commonjs, add .default
to access o-tooltip
methods.
-const Tooltip = require('o-tooltip');
+const Tooltip = require('o-tooltip').default;
The dependencies for this component have all been updated to the latest major versions. If you have any conflicts while installing this version, you'll need to first update its dependencies. See the Bower config for these.
- V3 introduces a new dependency on
o-grid
.o-grid
enables us to positiono-tooltip
dependent on the current breakpoint. To upgrade your project confirm your version ofo-grid
, if your project has one, is compatible. You may do this by installing V3 ofo-tooltip
and confirming there are no build failures. If your project is not compatible update the version ofo-grid
used in your project. Your current use ofo-grid
may be a direct dependency on theo-grid
component or a sub-dependency of a different component. - The deprecated events
o.tooltipShown
ando.tooltipClosed
are no longer fired. UseoTooltip.show
andoTooltip.close
instead. - The deprecated
rectObject
property andgetEdge
method of theTarget
object no longer exist.
V1 -> V2 introduces the new majors of o-overlay
and o-visual-effects
. Updating to this new version will mean updating any other components that you have which are using o-overlay
or o-visual-effects
. There are no other breaking changes in this release.