Depending on the implementation of the style guide either the functions.js file or both are necessary.
TabTrap enables looping over the focusable elements within the given DOM-element. Use this only when the DOM-element blocks others from view, e.g.
Detecting and handling keyboard input remains the responsibility of the invoking function!
var tabTrap = new gent_styleguide.TabTrap(container); // handle keyboard input // e.g. keyCode === 9 e.preventDefault(); tabTrap.next();
Style guide implementation of the breadcrumbs molecule.
Style guide implementation of the main menu.
We omitted to create a functions.js file, since all functions are provided by the lightbox plugin.
Our own accessible accordion library used for all collapsible content. For a detailed description of this library, see the notes on our accordion molecule.