Bug 42299: Add accessible label to star rating select in OPAC

To test:
1. Set  OpacStarRatings so it shows on the OPAC detail page
2. Notice star ratings has no associated label element
3. Apply the patch and refresh the OPAC detail page you were viewing.
4. Notice that the star ratings now have an accessible label.
5. Sign off and have a great day. :D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit fda196565d)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
This commit is contained in:
Laura_Escamilla 2026-04-09 17:56:13 +00:00 committed by Baptiste Wojtkowski
parent eb9aff3c81
commit d6d83bf73d
No known key found for this signature in database
GPG Key ID: 47A8A13E10BC0D40
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@
[% SET rating_avg = ratings.get_avg_rating() %]
[% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
<label for="star_rating" class="sr-only">Rate this title from 1 to 5 stars</label>
<select
id="star_rating"
class="star_rating"