Releases: sir-dunxalot/ember-tooltips
More passing test coverage
The test suite now passes for ember-beta
and ember-canary
. These were failing for a week or two.
.tooltip --> .ember-tooltip
Small Breaking Change
A breaking change was introduced for selectors and CSS styling. Classes were previously prefixed by .tooltip
. Now, classes are prefixed by 2.0.0
(#80). If you have custom styling that relies on any class that begins with .tooltip
you will need to update these classes to start with .embet-tooltip
.
For example:
.tooltip
-->.ember-tooltip
.tooltip-fade
-->.ember-tooltip-fade
.tooltip-target-attached-right
-->.ember-tooltip-target-attached-right
- And so forth...
Bugs
Additionally, this release fixes a small bug with aria-describedby
, which incorrectly used to contain an #
in its value. For example, <div aria-describedby="#123"></div>
is now <div aria-describedby="123"></div>
.
Version 1.0.0 - removed Darsain/tooltip
Release 1.0.0
brought a large number of backwards-incompatible changes to this library. Notably, the Darsain/tooltip library was removed from dependencies and was replaced with a combination of ember-tether and custom JS.
- Only two methods exist to add tooltips. Both are components:
{{tooltip-on-component}]
{{tooltip-on-element}}
data-tooltip-<x>
attributes are no longer supported on elementstooltip-<x>
attributes are no longer supported on componentsrenderTooltip
util was removed- Tooltips mixin was removed
Documentation can be found in the Readme.
Fixes tooltips persisting through transitions
Big thanks to @pauc !
SafeString accepted for tooltipContent
You can now pass a HTMLBars SafeString object in as the content of a tooltip.
Big thanks to @joukevandermaas.
IE Compatibility bug fix
Ember 2.0 and bound tooltip content
- Ember Tooltips 0.5.0 now supports Ember 2.0+. Special thanks for @cooperjbrandon
- When the
tooltipContent
property of a component with a tooltip changes, the tooltip's content will be updated. Special thanks to @lukes
Ember versions less than 2.0 should use version 0.4.0.
Tooltip duration added
This release adds a new option, tooltipDuration
, which can be specified to automatically hide and remove a tooltip after it has been shown for the specified number of milliseconds:
Manual trigger
This version adds a boolean property that can be used to show/hide the tooltip instead of a DOM event.
Instead of:
You can do:
Removes animation if detaching tooltip on transition
This patch removes an effect left set on tooltip in the DOM when the route transitions. This means the tooltip is removed immediately, not after an animation period, and it makes for a smoother visual transition.