
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
ember-ticketfly-accordion
Advanced tools
An ARIA-compliant, dependency-free accordion system comprised of composable Ember components.
An ARIA-compliant, easy-to-use accordion system built from composable Ember components -- with optional built-in animation through the Web Animations API.
View
ember install ember-ticketfly-accordion
ember-web-animations-next-polyfill.<button> elements instead of plain <div>s.This addon makes use of contextual components, and is therefore
intended to support versions of Ember >= 2.3.0.
View the interactive documentation for usage information and tips.
To provide ember-ticketfly-accordion with configuration options, define
them in a hash on the 'ember-ticketfly-accordion' property of the object
exported from your config/environment.js file:
ENV['ember-ticketfly-accordion'] = {
// options go here
};
Animation is enabled by default, and includes a super-lightweight implementation of
panel opening and closing built with the Web Animations API — with support back
to IE 10 thanks to the
thanks to the W3C's web-animations-next polyfill
(enabled in Ember by the ember-web-animations-next-polyfill addon).
To disable animation, simply set animatable to false on the root accordion component.
To customize animation, there are two approaches:
Overriding the addon's default implementation by passing your own functions to
the animatePanelOpen and animatePanelClosed properties on the root accordion component (One
or both can be overridden).
Configuring aspects of the addon's default implementation by setting addonAnimationSettings properties
in config/environment.js like so (available settings are shown with their current defaults):
ENV['ember-ticketfly-accordion'] = {
useAddonAnimations: true,
addonAnimationSettings: {
panelClose: {
duration: 390
easing: 'cubic-bezier(0.645, 0.045, 0.355, 1.000)' // ease-in-out-cubic
},
panelOpen: {
duration: 390
easing: 'cubic-bezier(0.215, 0.610, 0.355, 1)' // ease-out-cubic
}
}
};
As part of its adherence to the WAI-ARIA accordion spec, each
part of the component system contains the attributeBindings needed to automatically set
proper values for attributes such as aria-expanded() aria-multiselectable(), aria-controls(), etc.
This behavior is built-in for free.
Some ARIA attribute values are arbitrary, however, and where it's appropriate, components will declare bindings for attributes that you can set directly. Currently, this includes:
tf-accordion-panelaria-level: Since the panel functions as a "heading", but isn't any of the standard heading elements
(<h1>, <h2>, etc), this value should be set on each panel in the accordion according to
how you would define its heading level within your document. Since accordions can be used in just about any
context, tf-accordion-panel makes no default assumptions about this in advance.git clone <repository-url> this repositorycd ember-ticketfly-accordionnpm installbower installember servenpm test (Runs ember try:each to test your addon against multiple Ember versions)ember testember test --serverember buildFor more information on using ember-cli, visit https://ember-cli.com/.
FAQs
An ARIA-compliant, dependency-free accordion system comprised of composable Ember components.
We found that ember-ticketfly-accordion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.