Bug 40097

Summary: Text elements on the OPAC user pages don’t have sufficient color contrast.
Product: Koha Reporter: Nina Martinez <nina.martinez>
Component: AccessibilityAssignee: Nina Martinez <nina.martinez>
Status: Signed Off --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: martin.renvoize, matt.blenkinsop, oleonard
Version: unspecified   
Hardware: PC   
OS: Linux   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 40097: Replace the color of elements with low constrast.
Bug 40097: Replace the color of elements with low constrast.

Description Nina Martinez 2025-06-09 15:08:45 UTC
There are some elements on the OPAC user pages that don’t have sufficient color contrast. This issue affects elements on pages such as Checkout History, Holds History, and Interlibrary Loan Requests. This issue invalidates WCAG 1.4.3: The visual presentation of text and images of text has a contrast ratio of at least 4.5:1. 
We can maybe improve this by increasing the contrast between the text color and the background

WCAG: 
https://www.w3.org/WAI/WCAG22/quickref/?versions=2.1#contrast-minimum

WCAG Contrast Checker Firefox Extension (helps check color contrast): 
https://addons.mozilla.org/fr/firefox/addon/wcag-contrast-checker/
Comment 1 Nina Martinez 2025-06-23 09:11:21 UTC
Created attachment 183412 [details] [review]
Bug 40097: Replace the color of elements with low constrast.

Test plan:

1. Enable the system preferences: ILLModule, OPACHoldsHistory, OPACHoldRequests.
2. Apply the patch and log in to a patron account.
3. Go to the "Interlibrary loan requests". Look at the "Show 'select number' entries" and check the color contrast, which should be greater than 4.5.
4. Search for a record, choose "Place hold", and check the color contrast. The "show more options" should have a color contrast greater than 4.5.
5. Now go to the Holds history, you need at least one record on hold. Look at the "Showing 1 to ... of ... entries" and check the color contrast, which should be greater than 4.5.
Comment 2 Owen Leonard 2025-06-23 11:42:36 UTC
Created attachment 183415 [details] [review]
Bug 40097: Replace the color of elements with low constrast.

Test plan:

1. Enable the system preferences: ILLModule, OPACHoldsHistory,
   OPACHoldRequests.
2. Apply the patch and log in to a patron account.
3. Go to the "Interlibrary loan requests". Look at the "Show 'select
   number' entries" and check the color contrast, which should be
   greater than 4.5.
4. Search for a record, choose "Place hold", and check the color
   contrast. The "show more options" should have a color contrast
   greater than 4.5.
5. Now go to the Holds history, you need at least one record on hold.
   Look at the "Showing 1 to ... of ... entries" and check the color
   contrast, which should be greater than 4.5.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>