From 06a87eb8c3cff7b87d6da479f573382103e1bef1 Mon Sep 17 00:00:00 2001
From: Brendan Lawlor <blawlor@clamsnet.org>
Date: Thu, 10 Apr 2025 13:27:28 +0000
Subject: [PATCH] Bug 39597: Fix cancel_hold_alert badge color contrast for
 accesibilty

This patch add a class for the background on the badge element to fix color contrast

To test:
1. Go to a bib record and place multiple holds on it
2. Select multiple holds and click 'Cancel selected (4)'
3. The Alert says 'This action will cancel 4 hold(s).'
4. Note that the contrast on the number of holds is very low
5. Click 'Cancel' apply patch and restart_all
6. Repeat steps 2-3
7. Note that the contrast on the number of holds is good

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
---
 koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
index a8f2352b80..080b5087a1 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
@@ -1467,7 +1467,7 @@
         }
 
         var MSG_CANCEL_SELECTED = _("Cancel selected (%s)");
-        var MSG_CANCEL_ALERT    = _("This action will cancel <span class='badge'>%s</span> hold(s).");
+        var MSG_CANCEL_ALERT    = _("This action will cancel <span class='badge bg-danger'>%s</span> hold(s).");
         $.fn.select2.defaults.set("width", "100%" );
         $.fn.select2.defaults.set("dropdownAutoWidth", true );
 
-- 
2.48.1