Merge pull request #7 from feored/fix-striped-table

fix: don't count hidden rows in table stripes
This commit is contained in:
JWB 2024-11-10 07:39:09 -05:00 committed by GitHub
commit 2fc4ad27f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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