Frequently Asked Questions
What is a disclosure widget?
A disclosure widget is a control whose sole purpose is to show and hide content.
It is typically implemented as a button...
What is an accordion?
At its core, an accordion is a group of disclosure widgets.
Typically, in an accordion component, only one disclosure widget is open at a time. Some accordions allow for more than one to be open at a time. What this means is that the disclosure widgets in an accordion are, conceptually, (sort of) “aware” of each other’s state...
How is this accordion built?
The default markup is enhanced using JavaScript so that the buttons are added to the headings...
Will this accordion work without JavaScript?
The content of the FAQ section will be fully accessible even if JavaScript is disabled. Try it. Disabled JavaScript and see what the content looks like in its non-interactive state.