[Bug Report][4.1.8] VDataTable: Striping does not work when using expansion with expanded-slot
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 41k
- Forks
- 7.1k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 11
Description
Environment
Vuetify Version: 4.1.8
Vue Version: 3.5.41
OS: Linux
Steps to reproduce
- Open the reproduction link
- Observe that all main items share the same striping color (no striping visible)
- Expand one or more items
- Observe that all expansion areas share the same striping color (opposite color of all main items)
Expected Behavior
Striping should always happen on the level of main items. If a main item is expanded, the expanded area should share the same striping as its related main item.
The next main item (together with its expanded area) should then receive the opposite striping-color.
Actual Behavior
All main items have the same striping color and all expansion areas have the opposite striping color.
Therefore, there is no striping between main items (especially when all items are closed / not expanded).
Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
The expanded-slot internally is rendered as a dedicated tr-element. As striping is implemented via tr:nth-child, it receives the opposing striping color than the tr-element of its main item. This causes the next main item to have the same striping color again as the previous main item thereby bypassing the intended striping of main items.
Images

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the VDataTable implementation and reproduce the issue using the linked Vuetify Playground example, focusing on expanded-slot rendering and row striping. Verify that striping is applied per main item, with each expanded area sharing its parent item's color and the next main item alternating.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100