Why this wireframe works | Accordion with expand all
Readers who want everything open it in one press
“Expand all” shows the full text without opening items one by one. The same page offers a closed list to skimmers and the full text to those who want to check everything.
Shows how many are open
Beside the buttons it reads “2 of 6 sections open”. How far you have got, and whether anything is still closed, can be checked without scanning the screen.
Buttons that cannot be pressed look it
When everything is open, “Expand all” is disabled; when everything is closed, “Collapse all” is. No button is left that does nothing when pressed.
Everything opens for printing
Terms and specifications are sometimes printed to check. Every item opens just before printing, so no closed item drops off the paper.
Common mistakes | Accordion with expand all
One button that toggles between expand and collapse
When the same button’s text swaps between “Expand all” and “Collapse all”, the current state is easy to misread. Use two buttons, or convey the change of state in the text and to screen readers.
Buttons far from the accordion
Placed high on the page or elsewhere, it is unclear which list the buttons control. Put them right above the list, beside the item count.
Closed items missing from the printout
Printed closed, the page is a list of headings. Open everything just before printing, or show the bodies in the print stylesheet.
Losing the controls after expanding all
Expanding all makes the page much longer, and the button that was pressed can be hard to find again. After a press, move focus to the other button so collapsing can follow.
Open/closed state not restored after printing
For printing, prefer showing the content with print CSS. If you open items on beforeprint, record their state and restore it on afterprint.
FAQ | Accordion with expand all
Where should the expand-all button go?
Right above the accordion list, beside the item count. Placed away from the list, it is unclear which list it controls.
Can the two buttons be combined into one?
A single button whose text switches is one approach. In that case, convey the change of state after pressing in both the text and to screen readers. To avoid confusion, two buttons are clearer.
Can terms of use go in an accordion?
It makes skimming easier, but closed items may be skipped. For terms you want read in full, add an expand-all button and make sure the full text appears when printed or saved.













