Bug 28187: Exclude dtrg-group from row striping.
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 14 May 2021 10:15:58 +0000 (11:15 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 19 May 2021 13:06:42 +0000 (15:06 +0200)
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 <lucas@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss

index 01d25fd..b67f7f9 100644 (file)
@@ -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) {