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>
This commit is contained in:
parent
07325de908
commit
fda196565d
|
|
@ -345,6 +345,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