From 3acd6e9c9e543873883f02ccbb265a4f0d2e9ca1 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 6 Nov 2025 17:11:01 +0000 Subject: [PATCH] Bug 41170: (follow-up) Correct a CSS selector and adjust colors This patch updates the table cell selector so that the "previous" class isn't overwritte, and updates the "active" and "previous" classes so that they use standard Bootstrap colors. --- koha-tmpl/intranet-tmpl/prog/css/addbiblio.css | 6 ++++-- koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css index c5ac3c8f11a..0705c126238 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css +++ b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css @@ -306,10 +306,12 @@ fieldset.order_details ol li .label:first-child { tbody tr.active:nth-child( 2n+1 ) td, tbody tr.active td { - background-color: #FFFFCC; + background-color: var( --bs-warning-bg-subtle ); } + +tbody tr.previous:nth-child( 2n+1 ) td, tbody tr.previous td { - background-color: #CCFFFF; + background-color: var( --bs-info-bg-subtle ); } #loading { diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss index 41d7c8943bf..00c29141703 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss @@ -415,7 +415,7 @@ caption { tbody { tr { - &:nth-child( odd ):not( .dtrg-group, .active, .ok, .highlighted-row, .selected-row ) { + &:nth-child( odd ):not( .dtrg-group, .active, .ok, .highlighted-row, .selected-row, .previous ) { td { &:not( .bg-danger, .bg-warning, .bg-info, .bg-success, .bg-primary, .highlighted-row ) { background-color: $table-odd-row; -- 2.39.5