Why this wireframe works | Expandable-row table
The table keeps only what people compare
Putting descriptions in the table makes rows tall and hard to compare. The table holds only date, name, venue and seats; descriptions appear when opened.
Details open right below the row
When details appear outside the table, people have to trace which row they belong to. Details open directly under the pressed row, across the full table width.
The row and its details share one surface
It can be unclear whether opened details belong to the row above or below. The open row and its details share the same pale background, so they read as one.
The next step sits inside the details
Making people look for a booking page after reading adds effort. A booking button sits inside the details, and changes when there is no space left.
Any number of rows can be open
If opening one row closes another, two sessions cannot be compared. Rows can be opened at the same time.
Common mistakes when building it
Making the whole row clickable, clashing with links inside it
If the whole row toggles, people open it while trying to press a link in the row. Keep the toggle to one button labelled “Details”.
The open state is not announced
A visual arrow does not tell screen reader users whether a row is open. Give the button aria-expanded and make clear which row it belongs to.
Opening details at the bottom of the table
Details far from the pressed row leave people unsure which row they belong to. Open them right below the row.
Repeating table content in the details
Restating the date and venue inside the details just adds reading. Include only the description and actions that are not already in the table.
Keeping the table on mobile and making it scroll sideways
Toggling while scrolling sideways leaves half of the opened content off screen. Turn rows into blocks on mobile.
Frequently asked questions
How is it different from an accordion?
They are built in a similar way, but the expandable-row table keeps rows comparable as a table while opening details one row at a time. If there is nothing to compare and only headings and text, an accordion such as the exclusive accordion works better.
How should the opened details be marked up?
A common approach is a new row (tr) directly below, with one cell spanning all the columns (colspan) holding the details. Hide it with hidden when closed and point to it from the button with aria-controls.
Is a separate detail page better?
If the details are a few lines and people want to compare while looking at the table, the expandable-row table works well. If you need photos, maps or long descriptions, create detail pages and link to them from each row.
Do I need an “Expand all” button?
With only a few rows, it is not needed. If people often want everything open to print or compare, put “Expand all” above the table.















