0.2.1 • Published 5 years ago

@voorhoede/vue-accordion v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

vue-accordion

A behavioural and accessible accordion component.

Install

$ npm install @voorhoede/vue-accordion

Demo

View the demo.

Keyboard support

KeyFunction
Space or EnterWhen focus is on the accordion header of a collapsed panel, expands the panel. When another panel is expanded, it collapses this panel.
Tab- Moves focus to the next focusable element. - All focusable elements in the accordion are included in the Tab sequence.
Shift + Tab- Moves focus to the previous focusable element. - All focusable elements in the accordion are included in the Tab sequence.
Down arrow- When focus is on an accordion header, moves focus to the next accordion header. - When focus is on last accordion header, moves focus to first accordion header.
Up arrow- When focus is on an accordion header, moves focus to the previous accordion header. - When focus is on first accordion header, moves focus to last accordion header.
HomeWhen focus is on an accordion header, moves focus to the first accordion header.
EndWhen focus is on an accordion header, moves focus to the last accordion header.

Source: w3.org

Accessibility

Component has been tested on:

  • VoiceOver in Safari/Chrome on MacOS.
  • NVDA on Windows 8.
  • JAWS on Windows 8.