Why this wireframe works | Nested accordion
The overview first, then the details
Only the large categories show at first, so what is on offer can be taken in at a glance. Opening a category lists the items within, and opening one of those shows its details.
Item counts shown while closed
Each category heading carries the number of items inside, such as “3 services”, so the amount within can be judged before opening.
The levels told apart by look
The second level is indented with a line on the left, with smaller text and marks. Which level you are on is clear from position and size.
Heading hierarchy matched to the levels
First-level headings are h2 and second-level h3, so the hierarchy follows the levels. The relationship comes across to screen readers and heading navigation too.
Common mistakes | Nested accordion
Three or more levels
The deeper the nesting, the harder it is to tell what is open and the more closing there is to do. Keep to two levels and split anything deeper into pages.
The second level looking like the first
With the same size and position, an inner item is mistaken for the next category. Show the difference with indent, a line and text size.
Closing the first level resets the second
If every reopening of a category finds its items all closed again, readers must hunt for where they were. Decide whether the open state is kept.
Important information buried in the second level
Information that needs two opens to reach is rarely read. Put decision-critical information such as prices and conditions on the first level or on a separate page.
FAQ | Nested accordion
How many levels can an accordion have?
Two keeps readers from losing track of where they are. If a third is needed, give each category its own page and go from the list to a detail page.
Should the inner items be exclusive?
Where the inner items are compared, independent opening suits better. Where only one need be read, exclusive opening keeps the page from growing too tall.
Nested accordion or tabs?
With few categories and short names, the categories can be tabs with an accordion inside each. With many categories, or when they will not fit across a mobile screen, the nested accordion fits better.













