From 23b85cef716ffdd10738aa3d6cab786d9a31e30a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 14 May 2021 11:15:58 +0100 Subject: [PATCH] Bug 28187: Exclude dtrg-group from row striping. The odd row lowlighting stripe effect added to datatales wasn't accounting for classes introduced by the rowGroup plugin to denote grouping header rows. This patch adds the required exclusion rule to properly highlight rowGroup grouping rows. Test plan 1/ Enable POS 2/ Create a register and make some transactions. 3/ Have both debits and credits 4/ Have some older tranactions so you can look at the past_sales table. 5/ Apply patch and regenerate the staff CSS: (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface) 6/ Look at the sales and past_sales table. 7/ Make sure each row header is the darker shade of gray (#e0e0e0) 7a/ You will need to have made some transactions with even and odd numbers of items in the sale highlight the problem before applying the patch 7b/ The rowGroup plugin is also used for the checkouts table and this patch should also fix that case. Signed-off-by: Lucas Gass Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss index 01d25fd65f..b67f7f9268 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss @@ -331,7 +331,7 @@ caption { tbody { tr { - &:nth-child(odd) { + &:nth-child(odd):not(.dtrg-group) { td { border-right: 1px solid $table-border-color; &:not(.bg-danger):not(.bg-warning):not(.bg-info):not(.bg-success):not(.bg-primary) { -- 2.24.3 (Apple Git-128)