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:
parent
eb9aff3c81
commit
d6d83bf73d
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue