ES5 ARIA Accordion Component
Includes the following:
data-transition
attribute no longer allows for a value. Instead it merely adds a transition class to each accordion panel to allow for transitions for specific CSS properties to be customized in the CSS file..js
prior to CSS selectors, remove this .js
selector dependency and have the base markup utilize data attributes. When the script runs on page load, the classes that were there by default will now be applied by the script.ul
or ol
patternssetting a data-default was not working properly. While the code to correct this error is flagged by jsHint, it works and will be updated later to be nicer.
This is the deprecated, legacy jQuery version of the ARIA accordion plugin. Beyond requiring jQuery, it is based on an earlier draft of the ARIA Authoring guidelines, where accordions were originally written to be announced similarly to tab components.
It is not recommended to use this script anymore.