From e6e0b3c01e76f0451dcab2caeb064638c61613de Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 8 May 2025 14:29:26 +0100 Subject: [PATCH] Bug 39696: (Alternative) Set text-bg-info on badge With bootstrap 5, a 'badge' class should always be accompanied by a text-bg-# class. This second class sets the badge color and an appropriate forground text color to ensure appropriate contrast. Steps to test: 1. Enable the ability to mark items as "Claimed Returned" by setting the ClaimReturnedLostValue system preference. 2. Check out an item to a patron, and backdate the due date so that it becomes overdue. 3. Navigate to: /cgi-bin/koha/circ/overdue.pl to view the overdue item. 4. Mark the item as "Claims Returned". 5. Observe the display: the claim return date text uses #fff (white), which is not visible on white table rows andi has poor contrast on grey rows. 6. Apply the patch 7. Clear cache in browser and observe the display: the claim return date badge is now blue with black text. 8. Sign off and have an amazing day! :D --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt index cd9efbccaa1..796a55a8760 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt @@ -148,7 +148,7 @@ [% IF Koha.Preference('ClaimReturnedLostValue') %] [% IF ( overdueloo.return_claim_created_on ) %] - [% overdueloo.return_claim_created_on | $KohaDates with_hours => 1 %] + [% overdueloo.return_claim_created_on | $KohaDates with_hours => 1 %] [% ELSE %] Claim returned [% END %] -- 2.49.0