Releases: sir-dunxalot/ember-tooltips
Releases · sir-dunxalot/ember-tooltips
Removed Tether
Removed Tether dependency in favor of a more robust positioning library. Documentation for the 3.0.0-beta.x
releases can be found on this branch.
Dependency updates
Ember-tether bumped to 0.4.1
- #162 - Bumps
ember-tether
dependency to0.4.1
. This brings about additional functionality and improvements:- Fixes event delegation issues in test suites where events and actions were fired but not caught by Ember
- Upgrades the Ember CLI dev environment
- Exposes
findTooltip
andfindTooltipTarget
as public helpers (code here). Public documentation will follow. - Makes tooltips render as a child of the Ember app's
rootElement
, ifrootElement
is defined in the Ember app's config:
let App = Ember.Application.create({
rootElement: '#ember-app'
});
Improved test helper documentation
- #160 - Expands test helper documentation with more examples and explicit list of additional options per helper
Remove compass-boilerplate and inherit font
- #172 - Make Travis badge only track
master
branch and add Ember Observer badge - #175 - Use
font-family: inherit;
instead forfont-family: sans-serif;
for tooltips and popovers. - #177 - Remove the
compass-boilerplate
dependency, which was causing the test suite to fail unexpectedly. This change only affects the dummy app. - #178/#179 - Add
postcss
to the dummy app to replicate some of the cross-browser compatibility previously provided bycompass-boilerplate
assertTooltipContent test helper
- #146 - Adds the
assertTooltipContent()
test helper.
This release makes a new public test helper available: assertTooltipContent()
. Full documentation can be found in the readme. Here is an example of basic usage:
import {
assertTooltipContent,
} from 'appname/tests/helpers/ember-tooltips';
test('Example test', function(assert) {
this.render(hbs`{{tooltip-on-element text='More info'}}`);
assertTooltipContent(assert, {
contentString: 'More info',
});
});
Removes flickers. Makes popovers clickable in IE11.
- #153 - Opening and closing issues
- Fixes flickers when tooltips were attached to inputs with
event='click'
- Fixes flickers when popovers were attached to inputs with
event='click'
- Fixes inability to close popovers when they were attached to inputs with
event='focus'
- Fixes flickers when tooltips were attached to inputs with
- #159 - Makes popovers able to be interacted with in IE11
Code conventions
Upgrade ember-cli-sass dependency
- #155 - Upgrades ember-cli-sass in
devDependencies
to0.6.0
Spacing test helper
- #145 - Spacing test helper
This release adds a new public test helper, assertTooltipSpacing()
. This helper lets you assert that the tooltip is a given number of pixels from the target on a given side on the target.
This is designed to test the spacing option.
Usage is relatively simple and matches the implementation of existing test helpers:
assertTooltipSpacing(assert, {
side: 'right',
spacing: 10, // Tooltip should 10px from right of target
});
You can also pass in selectors:
assertTooltipSpacing(assert, {
side: 'top',
spacing: 20, // Tooltip should be 20px above target
targetSelector: '.test-tooltip-target',
tooltipSelector: '.test-tooltip',
});