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> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
d7f59e7adc
commit
fee16fa179
|
|
@ -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