fix: don't count hidden rows in table stripes

This commit is contained in:
feored 2024-08-03 21:41:20 +02:00
parent 6dc6489e69
commit 72e469942e

View file

@ -52,8 +52,8 @@
@if enable-classes { @if enable-classes {
#{$parent-selector} table { #{$parent-selector} table {
&.striped { &.striped {
tbody tr:nth-child(odd) th, tbody tr:nth-child(odd of :not([hidden])) th,
tbody tr:nth-child(odd) td { tbody tr:nth-child(odd of :not([hidden])) td {
background-color: var(#{$css-var-prefix}table-row-stripped-background-color); background-color: var(#{$css-var-prefix}table-row-stripped-background-color);
} }
} }