Bugzilla – Attachment 189381 Details for
Bug 41198
Add visible “Sort results by” label above the sort dropdown for accessibility and clarity
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41198: Add visible "Sort results by" label above sort dropdown in OPAC search results
Bug-41198-Add-visible-Sort-results-by-label-above-.patch (text/plain), 1.92 KB, created by
David Nind
on 2025-11-08 01:04:10 UTC
(
hide
)
Description:
Bug 41198: Add visible "Sort results by" label above sort dropdown in OPAC search results
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-11-08 01:04:10 UTC
Size:
1.92 KB
patch
obsolete
>From 4de2c5eaae10ee140d02f97c16be81ddc12e9863 Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >Date: Wed, 5 Nov 2025 21:18:06 +0000 >Subject: [PATCH] Bug 41198: Add visible "Sort results by" label above sort > dropdown in OPAC search results > >This patch adds a visible "Sort results by:" label above the sort dropdown >on the OPAC search results toolbar. Previously, only a screen-reader-only >label was present, providing no visible context for sighted users. > >This improves accessibility (WCAG 2.1 compliance) and usability by making >the function of the dropdown clear. > >To test: >1. Perform a search in the OPAC. >2. Confirm that the "Sort results by:" text appears above the sort dropdown. >3. Verify that the dropdown still functions correctly and the layout remains >consistent across screen sizes. > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index a94c8915a2..7e5f9052a7 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -198,6 +198,7 @@ > <div id="top-pages" class="col"> [% INCLUDE 'page-numbers.inc' %] </div> > [% UNLESS tag %] > <div class="sort_by col-sm-auto"> >+ <label for="sort_by">Sort results by:</label> > <label for="sort_by" class="sr-only">Sort by:</label> > <select id="sort_by" class="resort form-select form-select-sm" name="sort_by"> > [% INCLUDE 'resort_form.inc' %] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41198
:
189139
| 189381