@ec-europa/ecl-accordions
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -8,8 +8,6 @@ // Heavily inspired by the accordion component from https://github.com/frend/frend.co | ||
*/ | ||
export const accordions = ( | ||
{ | ||
selector: selector = '.ecl-accordion', | ||
headerSelector: headerSelector = '.ecl-accordion__header', | ||
} = {} | ||
) => { | ||
export const accordions = ({ | ||
selector: selector = '.ecl-accordion', | ||
headerSelector: headerSelector = '.ecl-accordion__header', | ||
} = {}) => { | ||
// SUPPORTS | ||
@@ -16,0 +14,0 @@ if ( |
@@ -5,3 +5,3 @@ { | ||
"license": "EUPL-1.1", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "ECL Accordions", | ||
@@ -12,5 +12,5 @@ "main": "_accordions.scss", | ||
"dependencies": { | ||
"@ec-europa/ecl-base": "^0.8.1", | ||
"@ec-europa/ecl-icons": "^0.9.0", | ||
"@ec-europa/ecl-u-colorize": "^0.4.1" | ||
"@ec-europa/ecl-base": "^0.9.0", | ||
"@ec-europa/ecl-icons": "^0.9.1", | ||
"@ec-europa/ecl-u-colorize": "^0.4.2" | ||
}, | ||
@@ -17,0 +17,0 @@ "publishConfig": { |
@@ -5,31 +5,33 @@ # Accordions | ||
If you need to present a lot of content on a page, it can be divided into sub-sections in a structured way. | ||
If you need to present a lot of content on a page, it can be divided into | ||
sub-sections in a structured way. | ||
The accordion component is a list of headers that can be clicked to hide or reveal additional content. It is also possible to add an icon to the headers. | ||
The accordion component is a list of headers that can be clicked to hide or | ||
reveal additional content. It is also possible to add an icon to the headers. | ||
## When to use this component | ||
- when you have a large amount of information | ||
- on FAQ pages | ||
* when you have a large amount of information | ||
* on FAQ pages | ||
## Do not use this component | ||
- as a rule avoid hiding information as much as possible | ||
* as a rule avoid hiding information as much as possible | ||
## Resources | ||
- WAI-ARIA Authoring Practices | ||
* WAI-ARIA Authoring Practices | ||
- Latest Version (14 December 2016) | ||
* Latest Version (14 December 2016) | ||
- [https://www.w3.org/TR/2016/WD-wai-aria-practices-1.1-20161214/#accordion](https://www.w3.org/TR/2016/WD-wai-aria-practices-1.1-20161214/#accordion) | ||
- [https://www.w3.org/TR/2016/WD-wai-aria-practices-1.1-20161214/examples/accordion/accordion1.html](https://www.w3.org/TR/2016/WD-wai-aria-practices-1.1-20161214/examples/accordion/accordion1.html) | ||
* [https://www.w3.org/TR/2016/WD-wai-aria-practices-1.1-20161214/#accordion](https://www.w3.org/TR/2016/WD-wai-aria-practices-1.1-20161214/#accordion) | ||
* [https://www.w3.org/TR/2016/WD-wai-aria-practices-1.1-20161214/examples/accordion/accordion1.html](https://www.w3.org/TR/2016/WD-wai-aria-practices-1.1-20161214/examples/accordion/accordion1.html) | ||
- Current draft (as seen on 21 June 2017) | ||
* Current draft (as seen on 21 June 2017) | ||
- [https://w3c.github.io/aria-practices/#accordion](https://w3c.github.io/aria-practices/#accordion) | ||
- [https://w3c.github.io/aria-practices/examples/accordion/accordion.html](https://w3c.github.io/aria-practices/examples/accordion/accordion.html) | ||
* [https://w3c.github.io/aria-practices/#accordion](https://w3c.github.io/aria-practices/#accordion) | ||
* [https://w3c.github.io/aria-practices/examples/accordion/accordion.html](https://w3c.github.io/aria-practices/examples/accordion/accordion.html) | ||
- Existing libraries | ||
* Existing libraries | ||
- [https://frend.co/components/accordion/](https://frend.co/components/accordion/) | ||
* [https://frend.co/components/accordion/](https://frend.co/components/accordion/) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
37
0
9591
176
+ Added@ec-europa/ecl-base@0.9.0(transitive)
- Removed@ec-europa/ecl-base@0.8.1(transitive)
Updated@ec-europa/ecl-base@^0.9.0
Updated@ec-europa/ecl-icons@^0.9.1