You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug Report][4.1.8] VDataTable: Striping does not work when using expansion with expanded-slot #23091
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).
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.
Activity