Michu2k Accordion Versions Save

Accordion module created in pure javascript & CSS. Very useful to create FAQ lists on your website.

v3.3.4

1 year ago
  • Update .npmignore

v3.3.3

1 year ago
  • Adjusted styles
  • Fixed a bug when defined IDs were overwritten
  • Fixed a bug when currFocusedIdx wasn't set correctly
  • Fixed a bug with transition event fired too often
  • Replaced deprecated keyCode event
  • Escape class names in selectors
  • ESLint: Enable no-unused-vars rule
  • pkg.json: Changed min Edge version to 80

v3.3.2

1 year ago
  • Moved execution of beforeOpen fn before panel calculation

v3.3.1

1 year ago
  • Fixed a bug when updateARIA wasn't fired when the closeAll function was called
  • openAll and closeAll will only work on open/close elements, added missing onClose & onOpen calls

v3.3.0

2 years ago
  • Added onlyChildNodes option
  • Fixed a bug with incorrect visiblity when openOnInit was set to 0 and more elements were loaded.
  • Added additional packages and settings to the gulp config

v3.2.0

2 years ago
  • Added .update() method
  • Updated packages

v3.1.1

3 years ago
  • Fixed accordion icon state

v3.1.0

3 years ago
  • Support for nested accordions

v3.0.0

3 years ago

The new major Accordion update is here! :fire: Many new options have been added and the core has been updated to meet the new accessibility standards.

  • Refactoring & Optimization
  • Added keydown handlers (space, arrowUp, arrowDown, home, end)
  • Added openOnInit option,
  • Added collapse option
  • Added activeClass option
  • Added beforeOpen option
  • Added onOpen option
  • Added beforeClose option
  • Added onClose option
  • Added open method
  • Added close method
  • Added toggle method
  • Added openAll method
  • Added closeAll method
  • Added toggle method
  • Added destroy method
  • Updated HTML structure
  • Updated CSS classes
  • Updated ARIA
  • Renamed options:
    • questionClass => triggerClass
    • answerClass => panelClass
    • closeOthers => showMultiple
    • aria => ariaEnabled
  • Removed itemNumber option
  • Removed showItem option
  • Removed onToggle option
  • Removed targetClass option
  • Removed IE support :cry:

v2.8.0

4 years ago
  • Added .attachEvents() & .detachEvents() functions - #8 Thanks @northkode for the idea
  • Core changes
  • Updated packages
  • Updated README.md